code: def test_validates_runs_tags(self):
      # Accidentally passed scalar strings
      with self.assertRaisesRegex(TypeError, "runs:.*got.*str.*myrun"):
          provider.RunTagFilter(runs="myrun")
      with self.assertRaisesRegex(TypeError, "tags:.*got.*str.*mytag"):
          provider.RunTagFilter(tags="mytag")
  
      # Passed collections with non-string elements
      with self.assertRaisesRegex(
          TypeError, "runs:.*got item of type.*NoneType.*None"
      ):
          provider.RunTagFilter(runs=[None])
      with self.assertRaisesRegex(
          TypeError, "tags:.*got item of type.*int.*3"
      ):
          provider.RunTagFilter(tags=["one", "two", 3])
  
imports: import numpy
  from tensorboard import test
  from tensorboard.data import provider
label_desc: Use image node_id 2 for calling the RunTagFilterTest obj's underlying member method code with example usage: obj.test_validates_runs_tags() without return types