code: def test_floats(self):
      # c_float and c_double can be created from
      # Python int and float
      class FloatLike:
          def __float__(self):
              return 2.0
  
      f = FloatLike()
      for t in float_types:
          self.assertEqual(t(2.0).value, 2.0)
          self.assertEqual(t(2).value, 2.0)
          self.assertEqual(t(2).value, 2.0)
          self.assertEqual(t(f).value, 2.0)
  
imports: import array
  import struct
  import sys
  import unittest
  from operator import truth
  from ctypes import byref, sizeof, alignment, c_char, c_byte, c_ubyte, c_short, c_ushort, c_int, c_uint, c_long, c_ulong, c_longlong, c_ulonglong, c_float, c_double, c_longdouble, c_bool
label_desc: Use image node_id 8 for calling the NumberTestCase obj's underlying member method code with example usage: obj.test_floats() and returns: int