code: def test_x_float_value(lineshape):
      """Test lineshapes when x is not an array but a float."""
      xval = 7.0
  
      func = getattr(lmfit.lineshapes, lineshape)
      sig = inspect.signature(func)
  
      fnc_args = [xval]
  
      for par in [
          par_name
          for par_name in sig.parameters.keys()
          if par_name != "x"
      ]:
          fnc_args.append(sig.parameters[par].default)
  
      fnc_output = func(*fnc_args)
      assert isinstance(fnc_output, float)
  
file_path: lmfit-py/tests/test_lineshapes.py
imports: import inspect
  import numpy
  from numpy.testing import assert_almost_equal
  import pytest
  import lmfit
  from lmfit.lineshapes import not_zero, tiny
label_desc: Use image node_id 3 for calling a global function with example usage: test_x_float_value(lineshape) without return types