code: def minimize_source(source):
      
      source = mitogen.core.to_text(source)
      tokens = tokenize.generate_tokens(StringIO(source).readline)
      tokens = strip_comments(tokens)
      tokens = strip_docstrings(tokens)
      tokens = reindent(tokens)
      return tokenize.untokenize(tokens)
docs: Remove comments and docstrings from Python `source`, preserving line
      numbers and syntax of empty blocks.
  
      :param str source:
          The source to minimize.
  
      :returns str:
          The minimized source.