code: def test_table_explicit_types():
      table = wandb.Table(columns=["a", "b"], dtype=int)
      table.add_data(None, None)
      table.add_data(1, 2)
      with pytest.raises(TypeError):
          table.add_data(1, "a")
  
      table = wandb.Table(
          columns=["a", "b"], optional=False, dtype=[int, str]
      )
      with pytest.raises(TypeError):
          table.add_data(None, None)
      table.add_data(1, "a")
      with pytest.raises(TypeError):
          table.add_data("a", "a")
  
      table = wandb.Table(
          columns=["a", "b"], optional=[False, True], dtype=[int, str]
      )
      with pytest.raises(TypeError):
          table.add_data(None, None)
      with pytest.raises(TypeError):
          table.add_data(None, "a")
      table.add_data(1, None)
      table.add_data(1, "a")
      with pytest.raises(TypeError):
          table.add_data("a", "a")
  
imports: import datetime
  import numpy
  import pytest
  import wandb
  from wandb import data_types
  from wandb.sdk.data_types._dtypes import AnyType, BooleanType, ConstType, InvalidType, ListType, NoneType, NumberType, OptionalType, StringType, TimestampType, TypedDictType, TypeRegistry, UnionType, UnknownType
label_desc: Use image node_id 23 for calling a global function with example usage: test_table_explicit_types() without return types