def METHOD_NAME(field, default_project):
    project = default_project
    organization = project.organization
    organization.update_option(
        "sentry:relay_pii_config",
        """
    {
        "applications": {
            "debug_meta.images.*.code_file": ["@userpath:replace"],
            "debug_meta.images.*.debug_file": ["@userpath:replace"]
        }
    }
    """,
    )
    organization.update_option("sentry:safe_fields", [])
    organization.update_option("sentry:sensitive_fields", ["o"])
    organization.update_option("sentry:scrub_ip_address", False)
    organization.update_option("sentry:require_scrub_data", True)
    event = {
        "extra": {field: "pls remove"},
        "debug_meta": {
            "images": [
                {"type": "symbolic", "debug_file": "/Users/foo/bar", "code_file": "/Users/foo/bar"}
            ]
        },
    }
    new_event = scrub_data(project, event)
    assert new_event == (
        {
            "_meta": {
                "debug_meta": {
                    "images": {
                        "0": {
                            "code_file": {
                                "": {"len": 10, "rem": [["@userpath:replace", "s", 7, 13]]}
                            },
                            "debug_file": {
                                "": {"len": 10, "rem": [["@userpath:replace", "s", 7, 13]]}
                            },
                        }
                    }
                },
                "extra": {field: {"": {"len": 10, "rem": [["strip-fields", "s", 0, 10]]}}},
            },
            "debug_meta": {
                "images": [
                    {
                        "code_file": "/Users/[user]/bar",
                        "debug_file": "/Users/[user]/bar",
                        "type": "symbolic",
                    }
                ]
            },
            "extra": {field: "[Filtered]"},
        }
    )