class_docstr: Test GeneralSpace works on a Sphere.
class_docstr_tok: ["Test","GeneralSpace","works","on","a","Sphere","."]
code: def generate_coords(self):
      angle0 = tf.range(-np.pi, np.pi, self.delta)
      # Ensure that we are far away from zero so that the tangent vectors are well
      # defined.
      angle1 = tf.range(np.pi / 2.0, np.pi, self.delta)
      return tf.reshape(
          tf.stack(tf.meshgrid(angle0, angle1), axis=-1), [-1, 2]
      )
  
imports: from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import exp
  from tensorflow_probability.python.bijectors import reshape
  from tensorflow_probability.python.bijectors import scale
  from tensorflow_probability.python.bijectors import scale_matvec_tril
  from tensorflow_probability.python.bijectors import transform_diagonal
  from tensorflow_probability.python.experimental.tangent_spaces import spaces
  from tensorflow_probability.python.experimental.tangent_spaces import spaces_test_util
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 1 for calling the HalfSphereSpaceTest obj's underlying member method code with example usage: obj.generate_coords() and returns: tf