code: def get_docstring(node, clean=True):
      if not isinstance(node, (FunctionDef, ClassDef, Module)):
          raise TypeError(
              "%r can't have docstrings" % node.__class__.__name__
          )
      if (
          node.body
          and isinstance(node.body[0], Expr)
          and isinstance(node.body[0].value, Constant)
      ):
          if clean:
              import inspect
  
              holder = node.body[0].value
              return inspect.cleandoc(
                  getattr(holder, holder._fields[0])
              )
          return node.body[0].value.s
  
file_path: catboost/contrib/python/gast/gast/gast.py
imports: import sys
  import ast
  from ast import boolop, cmpop, excepthandler, expr, expr_context, operator
  from ast import slice, stmt, unaryop, mod, AST
  from ast import iter_child_nodes, walk
label_desc: Use image node_id 5 for calling a global function with example usage: get_docstring(node, clean) and returns: node, inspect