<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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