code: def test_new_fields_multi(self):
      dataset = fo.Dataset()
      sample = fo.Sample(filepath="/path/to/image.jpg")
  
      field_name = "field1"
      value = 51
  
      sample[field_name] = value
  
      with self.assertRaises(ValueError):
          dataset.add_samples([sample], expand_schema=False)
  
      dataset.add_samples([sample])
      fields = dataset.get_field_schema()
      self.assertIsInstance(fields[field_name], fo.IntField)
      self.assertEqual(sample[field_name], value)
      self.assertEqual(dataset[sample.id][field_name], value)
  
imports: import os
  import tempfile
  import unittest
  from bson import Binary, ObjectId
  import numpy
  from PIL import ExifTags, Image
  import fiftyone
  from fiftyone import ViewField
  import fiftyone.core.odm
  import fiftyone.core.sample
  from decorators import drop_datasets
label_desc: Use image node_id 7 for calling the SampleInDatasetTests obj's underlying member method code with example usage: obj.test_new_fields_multi() without return types