code: def _numpy_array_size_fn(array: np.ndarray) -> int:
      """Size estimator for numpy arrays."""
      return array.nbytes
  
imports: from typing import Any, Callable, List, Optional, Tuple, Union
  import numpy
  from tensorflow_model_analysis.metrics import metric_util
  from tensorflow_model_analysis.proto import config_pb2
  from tensorflow_model_analysis.utils import size_estimator
label_desc: Use image node_id 1 for calling a global function with example usage: _numpy_array_size_fn(array) and returns: array