code: def _test_scale_image(dataset, label_field):
      scale_export_path = "/tmp/scale-image-export.json"
      scale_import_path = "/tmp/scale-image-import.json"
      scale_id_field = "scale_id"
  
      # Export labels in Scale format
      fous.export_to_scale(
          dataset,
          scale_export_path,
          label_field=label_field,
      )
  
      # Convert to Scale import format
      id_map = fous.convert_scale_export_to_import(
          scale_export_path, scale_import_path
      )
  
      for sample_id, task_id in id_map.items():
          sample = dataset[sample_id]
          sample[scale_id_field] = task_id
          sample.save()
  
      # Import labels from Scale
      fous.import_from_scale(
          dataset,
          scale_import_path,
          label_prefix="scale",
          scale_id_field=scale_id_field,
      )
  
      # Verify that we have two copies of the same labels
      session = fo.launch_app(dataset)
      session.wait()
  
file_path: fiftyone/tests/intensive/scale_tests.py
imports: import unittest
  import eta.core.utils
  import eta.core.web
  import fiftyone
  import fiftyone.zoo
  import fiftyone.utils.scale
label_desc: Use image node_id 4 for calling a global function with example usage: _test_scale_image(dataset, label_field) without return types