def get_import_definition_from_import_marker(import_marker: str) -> str:
    """
    Restores a Python import definition from a given import marker.

    :param import_marker: The import marker String containing the path to be imported.
    :returns: The restored Python import definition.
    """

    module_path = (
        import_marker.split(" ")[2]
        .replace('"', "")
        .replace("./", "")
        .replace(".py", "")
        .replace("\n", "")
        .replace("/", ".")
    )
    import_definition = f"from .{module_path} import *"
    return import_definition