def METHOD_NAME():
    """Returns a function to filter same module file imports."""
    def check(import_str, check_context):
        return any(module_file.endswith(import_str) for module_file in check_context.module_files), None
    return check