code: def test_tag_samples():
      dataset = foz.load_zoo_dataset("imagenet-sample").clone()
  
      view = dataset.take(100)
  
      view.tag_samples("test")
      print(dataset.count_sample_tags())
  
      view.untag_samples("test")
      print(dataset.count_sample_tags())
  
file_path: fiftyone/tests/intensive/collections_tests.py
imports: import random
  import unittest
  import fiftyone
  import fiftyone.zoo
  from fiftyone import ViewField
label_desc: Use image node_id 3 for calling a global function with example usage: test_tag_samples() without return types