class_docstr: Represents the basis of a `TangentSpace`.
class_docstr_tok: ["Represents","the","basis","of","a","`","TangentSpace","`","."]
code: def _to_dense_matrix(self, event_ndims):
      dense_tensor = self._to_dense()
      return _reshape_to_matrix(dense_tensor, 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 4 for calling the Basis obj's underlying member method code with example usage: obj._to_dense_matrix(event_ndims) and returns: _reshape_to_matrix