def WorldFromEyeMatrixFromFace(face_name):
  """Creates world-from-eye matrix for the given face of a cube map.

  Args:
    face_name: Name of the face. Must be one of 'front', 'back', 'left',
        'right', 'bottom', 'top'.

  Returns:
    The world-from-eye matrix for the given face as a list in row-major order.

  Raises:
    ValueError: face_name is not the name of a cube map face.
  """
  # pylint: disable=bad-whitespace
  # pylint: disable=bad-continuation
  if face_name is 'front':
    return [ 1.0,  0.0,  0.0,  0.0,
             0.0,  1.0,  0.0,  0.0,
             0.0,  0.0,  1.0,  0.0,
             0.0,  0.0,  0.0,  1.0]  # pyformat: disable
  elif face_name is 'back':
    return [-1.0,  0.0,  0.0,  0.0,
             0.0,  1.0,  0.0,  0.0,
             0.0,  0.0, -1.0,  0.0,
             0.0,  0.0,  0.0,  1.0]  # pyformat: disable
  elif face_name is 'left':
    return [ 0.0,  0.0,  1.0,  0.0,
             0.0,  1.0,  0.0,  0.0,
            -1.0,  0.0,  0.0,  0.0,
             0.0,  0.0,  0.0,  1.0]  # pyformat: disable
  elif face_name is 'right':
    return [ 0.0,  0.0, -1.0,  0.0,
             0.0,  1.0,  0.0,  0.0,
             1.0,  0.0,  0.0,  0.0,
             0.0,  0.0,  0.0,  1.0]  # pyformat: disable
  elif face_name is 'bottom':
    return [ 1.0,  0.0,  0.0,  0.0,
             0.0,  0.0,  1.0,  0.0,
             0.0, -1.0,  0.0,  0.0,
             0.0,  0.0,  0.0,  1.0]  # pyformat: disable
  elif face_name is 'top':
    return [ 1.0,  0.0,  0.0,  0.0,
             0.0,  0.0, -1.0,  0.0,
             0.0,  1.0,  0.0,  0.0,
             0.0,  0.0,  0.0,  1.0]  # pyformat: disable
  else:
    raise ValueError('Invalid face_name')