code: def is_string_like(obj):
      """
      Check if the object is a string.
  
      Parameters
      ----------
      obj : The object to check
  
      Examples
      --------
      >>> is_string_like("foo")
      True
      >>> is_string_like(1)
      False
  
      Returns
      -------
      is_str_like : bool
          Whether `obj` is a string or not.
      """
  
      return isinstance(obj, (text_type, string_types))
  
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 2 for calling a global function with example usage: is_string_like(obj) and returns: isinstance