code: def test_coerce_float64_function(self):
      a = np.array([0, 1, 2, 3, np.nan])
      pytest.raises(ValueError, coerce_float64, a)
      assert np.isnan(coerce_float64(a, nan_policy="propagate")[-1])
      assert_equal(coerce_float64(a, nan_policy="omit"), [0, 1, 2, 3])
  
      a[-1] = np.inf
      pytest.raises(ValueError, coerce_float64, a)
      assert np.isposinf(coerce_float64(a, nan_policy="propagate")[-1])
      assert_equal(coerce_float64(a, nan_policy="omit"), [0, 1, 2, 3])
      assert_equal(coerce_float64(a, handle_inf=False), a)
  
imports: import sys
  import unittest
  import numpy
  from numpy import pi
  from numpy.testing import assert_allclose, assert_almost_equal, assert_equal
  import pytest
  from scipy.optimize import rosen_der
  from uncertainties import ufloat
  from lmfit import Minimizer, Parameters, minimize
  from lmfit.lineshapes import gaussian
  from lmfit.minimizer import HAS_EMCEE, SCALAR_METHODS, MinimizerResult, coerce_float64
  from lmfit.models import SineModel
label_desc: Use image node_id 7 for calling the CommonMinimizerTest obj's underlying member method code with example usage: obj.test_coerce_float64_function() without return types