code: def mode1(x):
      """Mode (counts only) by Warren Weckesser.
  
      https://stackoverflow.com/questions/46365859/what-is-the-fastest-way-to-get-the-mode-of-a-numpy-array
  
      Args:
          x: Input array
      """
      _, counts = np.unique(x, return_counts=True)
      m = counts.argmax()
      return counts[m]
  
imports: from typing import Dict, Callable, Optional
  import warnings
  import pandas
  from pandas.core.dtypes.common import is_float
  import numpy
  from data_describe._widget import BaseWidget
  from data_describe.compat import _requires, _compat, _is_series, _is_dataframe
  from data_describe.backends._backends import _get_compute_backend
label_desc: Use image node_id 2 for calling a global function with example usage: mode1(x) and returns: counts