def METHOD_NAME(build_file: str, *, ignore_unrecognized_symbols: bool = False) -> AddressMap:
    path = "/dev/null"
    parser = Parser(
        build_root="",
        registered_target_types=RegisteredTargetTypes({"thing": GenericTarget}),
        union_membership=UnionMembership({}),
        object_aliases=BuildFileAliases(),
        ignore_unrecognized_symbols=ignore_unrecognized_symbols,
    )
    address_map = AddressMap.parse(
        path,
        build_file,
        parser,
        BuildFilePreludeSymbols(FrozenDict(), ()),
        EnvironmentVars({}),
        False,
        BuildFileDefaultsParserState.create(
            "", BuildFileDefaults({}), RegisteredTargetTypes({}), UnionMembership({})
        ),
        dependents_rules=None,
        dependencies_rules=None,
    )
    assert path == address_map.path
    return address_map