class_docstr: Thrown when an array cannot be allocated
class_docstr_tok: ["Thrown","when","an","array","can","not","be","allocated"]
code: def _total_size(self):
      num_bytes = self.dtype.itemsize
      for dim in self.shape:
          num_bytes *= dim
      return num_bytes
  
imports: from .._utils import set_module
label_desc: Use image node_id 2 for calling the _ArrayMemoryError obj's underlying member method code with example usage: obj._total_size() and returns: num_bytes