code: def decode_array(bytestring: bytes) -> np.ndarray:
      """Decodes a bytestring into a numpy array.
  
      The bytestring should be a serialized `TensorProto` instance. For more details
      see `tf.make_tensor_proto`.
  
      Args:
        bytestring: The serialized `TensorProto`.
  
      Returns:
        A numpy array.
      """
      return tf.make_ndarray(_CLS.FromString(bytestring))
  
file_path: tf-quant-finance/tf_quant_finance/experimental/io.py
imports: from typing import Dict, Callable, Optional
  import numpy
  import tensorflow.compat.v2
label_desc: Use image node_id 2 for calling a global function with example usage: decode_array(bytestring) and returns: tf