code: def _fix_int_lt_zero(x):
      """Convert `x` to double if it has real, negative components.
  
      Otherwise, output is just the array version of the input (via asarray).
  
      Parameters
      ----------
      x : array_like
  
      Returns
      -------
      array
  
      Examples
      --------
      >>> np.lib.scimath._fix_int_lt_zero([1,2])
      array([1, 2])
  
      >>> np.lib.scimath._fix_int_lt_zero([-1,2])
      array([-1.,  2.])
      """
      x = asarray(x)
      if any(isreal(x) & (x < 0)):
          x = x * 1.0
      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 3 for calling a global function with example usage: _fix_int_lt_zero(x) and returns: x