code: def size(dtype):
      """Returns the number of bytes to represent this `dtype`."""
      dtype = tf.as_dtype(dtype)
      if hasattr(dtype, "size") and hasattr(dtype, "as_numpy_dtype"):
          return dtype.size
      return np.dtype(dtype).itemsize
  
imports: import numpy
  import tensorflow.compat.v2
  from tensorflow.python.util import nest
label_desc: Use image node_id 15 for calling a global function with example usage: size(dtype) and returns: np, dtype