code: def test_floating(self):
      # Ticket #640, floats from string
      fsingle = np.single("1.234")
      fdouble = np.double("1.234")
      flongdouble = np.longdouble("1.234")
      assert_almost_equal(fsingle, 1.234)
      assert_almost_equal(fdouble, 1.234)
      assert_almost_equal(flongdouble, 1.234)
  
imports: import pytest
  import numpy
  from numpy.testing import assert_equal, assert_almost_equal, assert_warns
label_desc: Use image node_id 1 for calling the TestFromString obj's underlying member method code with example usage: obj.test_floating() without return types