code: def _make_complex_eigvecs(w, vin, dtype):
      """
      Produce complex-valued eigenvectors from LAPACK DGGEV real-valued output
      """
      # - see LAPACK man page DGGEV at ALPHAI
      v = numpy.array(vin, dtype=dtype)
      m = w.imag > 0
      m[:-1] |= (
          w.imag[1:] < 0
      )  # workaround for LAPACK bug, cf. ticket #709
      for i in flatnonzero(m):
          v.imag[:, i] = vin[:, i + 1]
          conj(v[:, i], v[:, i + 1])
      return v
  
imports: import warnings
  import numpy
  from numpy import array, isfinite, inexact, nonzero, iscomplexobj, flatnonzero, conj, asarray, argsort, empty, iscomplex, zeros, einsum, eye, inf
  from scipy._lib._util import _asarray_validated
  from ._misc import LinAlgError, _datacopied, norm
  from .lapack import get_lapack_funcs, _compute_lwork
  from scipy._lib.deprecation import _NoValue, _deprecate_positional_args
label_desc: Use image node_id 1 for calling a global function with example usage: _make_complex_eigvecs(w, vin, dtype) and returns: v