class_docstr: Arbitrary tangent space when no more-efficient special case applies.
class_docstr_tok: ["Arbitrary","tangent","space","when","no","more-efficient","special","case","applies","."]
code: def _transform_from_basis(self, new_basis, event_ndims):
      result = self.computed_log_volume
      if self.computed_log_volume is None:
          basis_matrix = self.basis.to_dense_matrix(event_ndims)
          result = volume_coefficient(basis_matrix)
      new_log_volume = volume_coefficient(
          new_basis.to_dense_matrix(event_ndims)
      )
      result = new_log_volume - result
      return result, GeneralSpace(
          new_basis, computed_log_volume=new_log_volume
      )
  
imports: import tensorflow.compat.v2
  from tensorflow_probability.python.internal import distribution_util
  from tensorflow_probability.python.internal import nest_util
  from tensorflow_probability.python.internal import prefer_static
  from tensorflow_probability.python.internal import tensor_util
  from tensorflow_probability.python.internal import tensorshape_util
label_desc: Use image node_id 2 for calling the GeneralSpace obj's underlying member method code with example usage: obj._transform_from_basis(new_basis, event_ndims) and returns: result,  GeneralSpace