class_docstr: Include source file without docstring at the top of file.
  Implementation just replaces the first docstring found in file
  with '' once.
  Example usage:
  .. includenodoc:: /beginner/examples_tensor/two_layer_net_tensor.py
class_docstr_tok: ["Include","source","file","without","docstring","at","the","top","of","file",".","Implementation","just","replaces","the","first","docstring","found","in","file","with","``","once",".","Example","usage",":","..","includenodoc",":",":","\/beginner\/examples_tensor\/two_layer_net_tensor.py"]
code: def run(self):
      document = self.state.document
      env = document.settings.env
      rel_filename, filename = env.relfn2path(self.arguments[0])
  
      try:
          text = open(filename).read()
          text_no_docstring = self.docstring_regex.sub(
              "", text, count=1
          )
  
          code_block = nodes.literal_block(text=text_no_docstring)
          return [code_block]
      except FileNotFoundError as e:
          print(e)
          return []
  
file_path: mlens/docs/source/custom_directives.py
imports: from docutils.parsers.rst import Directive, directives
  from docutils.statemachine import StringList
  from docutils import nodes
  import re
  import os
  import sphinx_gallery
label_desc: Use image node_id 1 for calling the IncludeDirective obj's underlying member method code with example usage: obj.run() and returns: list, list