parameters: (out)
return_statement: return out
docstring: Remove single-dimensional entries from array and convert to scalar,
      if necessary.
docstring_summary: Remove single-dimensional entries from array and convert to scalar,
      if necessary.
docstring_tokens: Remove single - dimensional entries from array and convert to scalar if necessary .
function: def _squeeze_output(out):
      """
      Remove single-dimensional entries from array and convert to scalar,
      if necessary.
  
      """
      out = out.squeeze()
      if out.ndim == 0:
          out = out[()]
      return out
function_tokens: def _squeeze_output ( out ) : out = out . squeeze ( ) if out . ndim == 0 : out = out [ ( ) ] return out