original_docstring: 
      Reshapes x into a matrix with input_dim columns
  
      
docstring: Reshapes x into a matrix with input_dim columns
docstring_tokens: Reshapes x into a matrix with input_dim columns
code: def reshape(x,input_dim):
      '''
      Reshapes x into a matrix with input_dim columns
  
      '''
      x = np.array(x)
      if x.size ==input_dim:
          x = x.reshape((1,input_dim))
      return x
code_tokens: def reshape ( x , input_dim ) : x = np . array ( x ) if x . size == input_dim : x = x . reshape ( ( 1 , input_dim ) ) return x
short_docstring: Reshapes x into a matrix with input_dim columns
short_docstring_tokens: Reshapes x into a matrix with input_dim columns
comment: '''
      Reshapes x into a matrix with input_dim columns
  
      '''