code: def is_offsetlike(arr_or_obj):
      """
      Check if obj or all elements of list-like is DateOffset
  
      Parameters
      ----------
      arr_or_obj : object
  
      Returns
      -------
      boolean : Whether the object is a DateOffset or listlike of DatetOffsets
  
      Examples
      --------
      >>> is_offsetlike(pd.DateOffset(days=1))
      True
      >>> is_offsetlike('offset')
      False
      >>> is_offsetlike([pd.offsets.Minute(4), pd.offsets.MonthEnd()])
      True
      >>> is_offsetlike(np.array([pd.DateOffset(months=3), pd.Timestamp.now()]))
      False
      """
      if isinstance(arr_or_obj, ABCDateOffset):
          return True
      elif (
          is_list_like(arr_or_obj)
          and len(arr_or_obj)
          and is_object_dtype(arr_or_obj)
      ):
          return all(isinstance(x, ABCDateOffset) for x in arr_or_obj)
      return False
  
imports: import warnings
  import numpy
  from pandas._libs import algos, lib
  from pandas._libs.tslibs import conversion
  from pandas.compat import PY3, PY36, string_types
  from pandas.core.dtypes.dtypes import CategoricalDtype, DatetimeTZDtype, ExtensionDtype, IntervalDtype, PandasExtensionDtype, PeriodDtype, registry
  from pandas.core.dtypes.generic import ABCCategorical, ABCDateOffset, ABCDatetimeIndex, ABCIndexClass, ABCPeriodArray, ABCPeriodIndex, ABCSeries
  from pandas.core.dtypes.inference import is_array_like, is_bool, is_complex, is_decimal, is_dict_like, is_file_like, is_float, is_hashable, is_integer, is_interval, is_iterator, is_list_like, is_named_tuple, is_nested_list_like, is_number, is_re, is_re_compilable, is_scalar, is_sequence, is_string_like
label_desc: Use image node_id 11 for calling a global function with example usage: is_offsetlike(arr_or_obj) and returns: False, True, all