code: def get_ast(module_path, python_version):
      
      with module_path.open(mode='rt', encoding='utf-8') as handle:
          source = handle.read()
  
      return parso.parse(source, version=python_version)
docs: Get the AST for the code in a file.
  
      Args:
          module_path: pathlib.Path to the file containing the code.
          python_version: Python version as a "MAJ.MIN" string.
  
      Returns: The parso parse tree for the code in `module_path`.