code: def mpc2complex(x):
      return complex(mpf2float(x.real), mpf2float(x.imag))
  
imports: import os
  import sys
  import time
  import numpy
  from numpy.testing import assert_
  import pytest
  from scipy.special._testutils import assert_func_equal
label_desc: Use image node_id 5 for calling a global function with example usage: mpc2complex(x) and returns: complex