code: def indent(text, indents=1):
      if not text or not isinstance(text, str):
          return ""
      jointext = "".join(["\n"] + ["    "] * indents)
      return jointext.join(text.split("\n"))
  
imports: from functools import wraps
  import inspect
  from textwrap import dedent
  import warnings
  from pandas._libs.properties import cache_readonly
  from pandas.compat import PY2, callable, signature
label_desc: Use image node_id 4 for calling a global function with example usage: indent(text, indents) and returns: jointext, str