code: def testAstype(self):
      a = t2a(tf.convert_to_tensor(value=1.1, dtype=tf.float32)).astype(
          np.int32
      )
      self.assertIs(a.dtype.type, np.int32)
      self.assertAllEqual(1, a)
      a = t2a(
          tf.convert_to_tensor(value=[0.0, 1.1], dtype=tf.float32)
      ).astype(np.bool_)
      self.assertIs(a.dtype.type, np.bool_)
      self.assertAllEqual([False, True], a)
  
imports: from collections import abc
  import numpy
  import tensorflow.compat.v2
  from trax.tf_numpy.numpy_impl import arrays
  from trax.tf_numpy.numpy_impl import math_ops
label_desc: Use image node_id 2 for calling the ArrayTest obj's underlying member method code with example usage: obj.testAstype() without return types