code: def apply_if_callable(maybe_callable, obj, **kwargs):
      
  
      if callable(maybe_callable):
          return maybe_callable(obj, **kwargs)
  
      return maybe_callable
docs: Evaluate possibly callable input using obj and kwargs if it is callable,
      otherwise return as it is.
  
      Parameters
      ----------
      maybe_callable : possibly a callable
      obj : NDFrame
      **kwargs