code: def size(x):
      """Return the total number of elements of x.
  
      Parameters
      ----------
      x : array
          Array instance from NumPy or an array API compatible library.
  
      Returns
      -------
      out : int
          Total number of elements.
      """
      return math.prod(x.shape)
  
imports: import math
  from functools import wraps
  import numpy
  import scipy.special
  from .._config import get_config
  from .fixes import parse_version
label_desc: Use image node_id 3 for calling a global function with example usage: size(x) and returns: math