docs: def build_pyfile_path_from_docname(self, docfile):
          """Build the expected Python file name based on the given documentation file name.
  
          :param str docfile: The documentation file name from which to build the Python file name.
          :rtype: str
          """
          name, ext = os.path.splitext(docfile)
          expected_py_name = name.replace('.', '/') + '.py'
          return expected_py_name