code: def test_from_number(self):
      f = np.array([1.0, -1.2])
      r_f = [ExpFormat(24, 16, repeat=3), ExpFormat(25, 16, repeat=3)]
      for i, j in zip(f, r_f):
          assert_equal(ExpFormat.from_number(i).__dict__, j.__dict__)
  
file_path: catboost/contrib/python/scipy/py3/scipy/io/harwell_boeing/tests/test_fortran_format.py
imports: import numpy
  from numpy.testing import assert_equal
  from pytest import raises
  from scipy.io.harwell_boeing._fortran_format_parser import FortranFormatParser, IntFormat, ExpFormat, BadFortranFormat
label_desc: Use image node_id 2 for calling the TestExpFormat obj's underlying member method code with example usage: obj.test_from_number() without return types