code: def get_comments_str(file_name):
      with open(file_name) as fd:
          file_contents = fd.read()
      module = ast.parse(file_contents)
  
      function_definitions = [
          node
          for node in module.body
          if isinstance(node, ast.FunctionDef)
          and (node.name[0] != "_" or node.name[:2] == "__")
      ]
  
      doc = get_func_comments(function_definitions)
  
      class_definitions = [
          node for node in module.body if isinstance(node, ast.ClassDef)
      ]
      for class_def in class_definitions:
          temp_str = to_md(
              parse_func_string(ast.get_docstring(class_def))
          )
  
          # excludes private methods (start with '_')
          method_definitions = [
              node
              for node in class_def.body
              if isinstance(node, ast.FunctionDef)
              and (node.name[0] != "_" or node.name[:2] == "__")
          ]
  
          temp_str += get_func_comments(method_definitions)
          doc += "## class " + class_def.name + "\n" + temp_str
      return doc
  
file_path: image-super-resolution/mkdocs/autogen.py
imports: import ast
  import os
  import re
label_desc: Use image node_id 10 for calling a global function with example usage: get_comments_str(file_name) and returns: doc