code: def test_unknown_fields_in_remove_field_transform():
      with pytest.warns(
          UserWarning, match="not part of the schema.*unknown_1"
      ):
          one_removed = transform_schema(
              TestSchema,
              TransformSpec(
                  lambda x: x,
                  edit_fields=None,
                  removed_fields=["int", "unknown_1", "unknown_2"],
              ),
          )
      assert set(one_removed.fields.keys()) == {"string", "double"}
  
file_path: petastorm/petastorm/tests/test_transform.py
imports: import numpy
  import pytest
  from petastorm.transform import edit_field, transform_schema, TransformSpec
  from petastorm.unischema import Unischema, UnischemaField
label_desc: Use image node_id 6 for calling a global function with example usage: test_unknown_fields_in_remove_field_transform() without return types