code: def is_number(obj):
      """
      Check if the object is a number.
  
      Returns True when the object is a number, and False if is not.
  
      Parameters
      ----------
      obj : any type
          The object to check if is a number.
  
      Returns
      -------
      is_number : bool
          Whether `obj` is a number or not.
  
      See Also
      --------
      pandas.api.types.is_integer: Checks a subgroup of numbers.
  
      Examples
      --------
      >>> pd.api.types.is_number(1)
      True
      >>> pd.api.types.is_number(7.15)
      True
  
      Booleans are valid because they are int subclass.
  
      >>> pd.api.types.is_number(False)
      True
  
      >>> pd.api.types.is_number("foo")
      False
      >>> pd.api.types.is_number("5")
      False
      """
  
      return isinstance(obj, (Number, np.number))
  
file_path: catboost/contrib/python/pandas/py2/pandas/core/dtypes/inference.py
imports: from numbers import Number
  import re
  import numpy
  from pandas._libs import lib
  from pandas.compat import PY2, Set, re_type, string_and_binary_types, string_types, text_type
  from pandas import compat
label_desc: Use image node_id 1 for calling a global function with example usage: is_number(obj) and returns: isinstance