def METHOD_NAME(
    stream_name: str,
    schema: dict,
    mask: SelectionMask,
    logger: Logger,
) -> dict:
    """Return a copy of the provided JSON schema, dropping any fields not selected."""
    new_schema = deepcopy(schema)
    _pop_deselected_schema(new_schema, mask, stream_name, (), logger)
    return new_schema