code: def _fix_real_abs_gt_1(x):
      """Convert `x` to complex if it has real components x_i with abs(x_i)>1.
  
      Otherwise, output is just the array version of the input (via asarray).
  
      Parameters
      ----------
      x : array_like
  
      Returns
      -------
      array
  
      Examples
      --------
      >>> np.lib.scimath._fix_real_abs_gt_1([0,1])
      array([0, 1])
  
      >>> np.lib.scimath._fix_real_abs_gt_1([0,2])
      array([ 0.+0.j,  2.+0.j])
      """
      x = asarray(x)
      if any(isreal(x) & (abs(x) > 1)):
          x = _tocomplex(x)
      return x
  
imports: from __future__ import division, absolute_import, print_function
  import numpy.core.numeric
  import numpy.core.numerictypes
  from numpy.core.numeric import asarray, any
  from numpy.core.overrides import array_function_dispatch
  from numpy.lib.type_check import isreal
label_desc: Use image node_id 4 for calling a global function with example usage: _fix_real_abs_gt_1(x) and returns: x