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_general(self, x, f, event_ndims=None, **kwargs):
      # TODO(b/197680518): Clean up and extend the following code:
      # 1) Add Multipart Bijector Support.
      if NUMPY_MODE:
          raise ValueError("`transform_general` not available in Numpy")
  
      new_basis_tensor = compute_new_basis_tensor(f, x, self.basis)
      new_basis = DenseBasis(new_basis_tensor)
      if event_ndims is None:
          event_ndims = f.forward_min_event_ndims
      return self._transform_from_basis(new_basis, event_ndims)
  
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 3 for calling the GeneralSpace obj's underlying member method code with example usage: obj._transform_general(x, f, event_ndims) and returns: self