code: def _count_reduce_items(arr, axis):
      if axis is None:
          axis = tuple(range(arr.ndim))
      if not isinstance(axis, tuple):
          axis = (axis,)
      items = 1
      for ax in axis:
          items *= arr.shape[ax]
      return items
  
file_path: catboost/contrib/python/numpy/py2/numpy/core/_methods.py
imports: from __future__ import division, absolute_import, print_function
  import warnings
  from numpy.core import multiarray
  from numpy.core import umath
  from numpy.core.numeric import asanyarray
  from numpy.core import numerictypes
  from numpy._globals import _NoValue
label_desc: Use image node_id 7 for calling a global function with example usage: _count_reduce_items(arr, axis) and returns: items