code: def testFloats(self):
      f = numpy.float32
      c = numpy.complex64
      self.assertEquivalent(
          dtype_ext.accept_float32(f(numpy.pi)), numpy.dtype(f)
      )
      self.assertEquivalent(
          dtype_ext.accept_complex64(c(1 + 2j)), numpy.dtype(c)
      )
      f = numpy.float64
      c = numpy.complex128
      self.assertEquivalent(
          dtype_ext.accept_float64(f(numpy.pi)), numpy.dtype(f)
      )
      self.assertEquivalent(
          dtype_ext.accept_complex128(c(1 + 2j)), numpy.dtype(c)
      )
      if hasattr(numpy, "longdouble") and hasattr(
          dtype_ext, "accept_longdouble"
      ):
          f = numpy.longdouble
          c = numpy.clongdouble
          self.assertEquivalent(
              dtype_ext.accept_longdouble(f(numpy.pi)), numpy.dtype(f)
          )
          self.assertEquivalent(
              dtype_ext.accept_clongdouble(c(1 + 2j)), numpy.dtype(c)
          )
  
file_path: turicreate/src/external/boost/boost_1_68_0/libs/python/test/numpy/dtype.py
imports: import dtype_ext
  import unittest
  import numpy
  import sys
label_desc: Use image node_id 3 for calling the DtypeTestCase obj's underlying member method code with example usage: obj.testFloats() without return types