code: def dedent_docstring(text):
      """Remove uniform indentation from a multiline docstring"""
      # Problem is that first line might often have no offset, so might
      # need to be ignored from dedent call
      if text is None:
          return None
      if not text.startswith(" "):
          lines = text.split("\n")
          if len(lines) == 1:
              # single line, no indentation, nothing to do
              return text
          text2 = "\n".join(lines[1:])
          return lines[0] + "\n" + textwrap.dedent(text2)
      else:
          return textwrap.dedent(text)
  
imports: import inspect
  import logging
  import os
  import re
  import textwrap
  import warnings
  from abc import ABC, abstractmethod
  from functools import wraps
  from importlib import import_module
  from typing import Callable, Dict, Generator, TypeVar, TYPE_CHECKING
  import datalad
  from datalad import cfg
  from datalad.core.local.resulthooks import get_jsonhooks_from_config, match_jsonhook2result, run_jsonhook
  from datalad.distribution.dataset import Dataset, resolve_path
  from datalad.interface.common_opts import eval_params
  from datalad.interface.results import known_result_xfms
  from datalad.interface.utils import get_result_filter, keep_result, render_action_summary, xfm_result, _process_results
  from datalad.support.exceptions import CapturedException, IncompleteResultsError
  from datalad.utils import get_wrapped_class
label_desc: Use image node_id 6 for calling a global function with example usage: dedent_docstring(text) and returns: None, unknown, textwrap, text