code: def test_select_samples():
      dataset = foz.load_zoo_dataset("quickstart").clone()
      dataset.untag_samples("validation")
  
      session = fo.launch_app(dataset)
  
      # Select `n` samples in the App
      input("Press enter after selecting samples...")
  
      print(len(session.selected))
      # n
  
      session.tag_selected_samples("test")
  
      print(dataset.count_sample_tags())
      # {'test': n}
  
      session.untag_selected_samples("test")
  
      print(dataset.count_sample_tags())
      # {}
  
      session.tag_selected_samples("test")
      session.clear_selected()
  
      print(len(session.selected))
      # 0
  
      session.select_samples(tags="test")
  
      print(len(session.selected))
  
imports: import unittest
  import fiftyone
  import fiftyone.zoo
label_desc: Use image node_id 1 for calling a global function with example usage: test_select_samples() without return types