code: def _real2complex(x):
      return np.ascontiguousarray(x, dtype=float).view(np.complex128)
  
file_path: catboost/contrib/python/scipy/py2/scipy/optimize/_spectral.py
imports: from __future__ import division, absolute_import, print_function
  import collections
  import numpy
  from scipy.optimize import OptimizeResult
  from scipy.optimize.optimize import _check_unknown_options
  from .linesearch import _nonmonotone_line_search_cruz, _nonmonotone_line_search_cheng
label_desc: Use image node_id 4 for calling a global function with example usage: _real2complex(x) and returns: np