parameters: (x, dim=0)
return_statement: return [x[(slice(None),)*dim+(i,)] for i in range(x.shape[dim])]
docstring: r'''
      Removes a var dimension.
  
      Returns a tuple of all slices along a given dimension, already without it.
  
      Args:
  
          input (var) – the var to unbind
  
          dim (int) – dimension to remove
  
      Example:
  
          a = jt.random((3,3))
          b = jt.unbind(a, 0)
docstring_summary: r'''
      Removes a var dimension.
docstring_tokens: r Removes a var dimension .
function: def unbind(x, dim=0):
      r'''
      Removes a var dimension.
  
      Returns a tuple of all slices along a given dimension, already without it.
  
      Args:
  
          input (var) – the var to unbind
  
          dim (int) – dimension to remove
  
      Example:
  
          a = jt.random((3,3))
          b = jt.unbind(a, 0)
  
      '''
      if dim < 0: dim += len(x.shape)
      return [x[(slice(None),)*dim+(i,)] for i in range(x.shape[dim])]
function_tokens: def unbind ( x , dim = 0 ) : if dim < 0 : dim += len ( x . shape ) return [ x [ ( slice ( None ) , ) * dim + ( i , ) ] for i in range ( x . shape [ dim ] ) ]