code: def test_select_field_transform():
      test_list = [
          ["string", "double", "int"],
          ["int", "string", "double"],
          ["string", "int"],
          ["int"],
      ]
      for selected_fields in test_list:
          transformed = transform_schema(
              TestSchema, TransformSpec(selected_fields=selected_fields)
          )
          assert list(transformed.fields.keys()) == selected_fields
  
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 3 for calling a global function with example usage: test_select_field_transform() without return types