def test_dataset_shared_field_metadata(self):
        """Test field metadata for default/shared fields"""
        dataset1 = fo.Dataset()
        dataset2 = fo.Dataset()

        f = dataset1.get_field("filepath")
        self.assertIsNot(f, dataset2.get_field("filepath"))

        # Save metadata on dataset1 field, should not show up in dataset2
        f.info = {"foo": "bar"}
        f.save()

        dataset2.reload()
        self.assertIsNone(dataset2.get_field("filepath").info)

        # Really fresh reload
        fo.Dataset._instances.clear()
        dataset2b = fo.load_dataset(dataset2.name)
        self.assertIsNone(dataset2b.get_field("filepath").info)
Test field metadata for default/shared fields
tests/unittests/dataset_tests.py