def METHOD_NAME(local_scratch):
    def _method(project_name=None, subfolder=None):
        if subfolder:
            project_file = os.path.join(local_path, "example_models", subfolder, project_name + ".aedt")
        else:
            project_file = os.path.join(local_scratch.path, project_name + ".aedt")
        if os.path.exists(project_file):
            return project_file
        else:
            return None
    return _method