code: def clean_code(content):
      """
      Remove docstrings, empty line or comments from `content`.
      """
      # fmt: off
      # Remove docstrings by splitting on triple " then triple ':
      splits = content.split('\"\"\"')
      content = "".join(splits[::2])
      splits = content.split("\'\'\'")
      # fmt: on
      content = "".join(splits[::2])
  
      # Remove empty lines and comments
      lines_to_keep = []
      for line in content.split("\n"):
          # remove anything that is after a # sign.
          line = re.sub("#.*$", "", line)
          if len(line) == 0 or line.isspace():
              continue
          lines_to_keep.append(line)
      return "\n".join(lines_to_keep)
  
imports: import argparse
  import collections
  import json
  import os
  import re
  from contextlib import contextmanager
  from pathlib import Path
  from git import Repo
label_desc: Use image node_id 2 for calling a global function with example usage: clean_code(content) and returns: str