parameters: (self, x)
return_statement: return sample_ndims
docstring: Returns number of dimensions corresponding to iid draws.
  
      Args:
        x: `Tensor`.
  
      Raises:
        ValueError: if batch_ndims or event_ndims are not statically known.
        ValueError: if static sample_ndims does not match inferred
  
      Returns:
        Scalar number of dimensions associated with a sample.
docstring_summary: Returns number of dimensions corresponding to iid draws.
docstring_tokens: Returns number of dimensions corresponding to iid draws .
function: def get_sample_ndims(self, x):
      """Returns number of dimensions corresponding to iid draws.
  
      Args:
        x: `Tensor`.
  
      Raises:
        ValueError: if batch_ndims or event_ndims are not statically known.
        ValueError: if static sample_ndims does not match inferred
  
      Returns:
        Scalar number of dimensions associated with a sample.
      """
      ndims = self.get_ndims(x)
      sample_ndims = ndims - self.batch_ndims - self.event_ndims
      if sample_ndims < 0:
        raise ValueError('expected batch_ndims(%d) + event_ndims(%d) < ndims(%d)',
                         self.batch_ndims, self.event_ndims, ndims)
      return sample_ndims
function_tokens: def get_sample_ndims ( self , x ) : ndims = self . get_ndims ( x ) sample_ndims = ndims - self . batch_ndims - self . event_ndims if sample_ndims < 0 : raise ValueError ( 'expected batch_ndims(%d) + event_ndims(%d) < ndims(%d)' , self . batch_ndims , self . event_ndims , ndims ) return sample_ndims