code: def testAllowF64False(self, prefer_f32):
      np_dtypes.set_allow_float64(False)
      np_dtypes.set_prefer_float32(prefer_f32)
      self.assertEqual(dtypes.float32, np_dtypes.default_float_type())
      self.assertEqual(
          dtypes.float32,
          np_dtypes._result_type(np.zeros([], np.float64), 1.1),
      )
  
file_path: tensorflow-upstream/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 1 for calling the DTypeTest obj's underlying member method code with example usage: obj.testAllowF64False(prefer_f32) without return types