code: def testAllowF64TruePreferF32True(self):
      np_dtypes.set_allow_float64(True)
      np_dtypes.set_prefer_float32(True)
      self.assertEqual(dtypes.float32, np_dtypes.default_float_type())
      self.assertEqual(dtypes.float32, np_dtypes._result_type(1.1))
      self.assertEqual(
          dtypes.float64,
          np_dtypes._result_type(np.zeros([], np.float64), 1.1),
      )
      self.assertEqual(dtypes.complex64, np_dtypes._result_type(1.1j))
      self.assertEqual(
          dtypes.complex128,
          np_dtypes._result_type(np.zeros([], np.complex128), 1.1j),
      )
      self.assertEqual(
          dtypes.complex64,
          np_dtypes._result_type(np.zeros([], np.float32), 1.1j),
      )
  
file_path: tensorflow/tensorflow/python/ops/numpy_ops/np_dtypes_test.py
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.ops.numpy_ops import np_dtypes
  from tensorflow.python.platform import test
label_desc: Use image node_id 3 for calling the DTypeTest obj's underlying member method code with example usage: obj.testAllowF64TruePreferF32True() without return types