code: def test_table_typing_numpy():
      # Pulled from https://numpy.org/devdocs/user/basics.types.html
  
      # Numerics
      table = wandb.Table(columns=["A"], dtype=[NumberType])
      table.add_data(None)
      table.add_data(42)
      table.add_data(np.byte(1))
      table.add_data(np.short(42))
      table.add_data(np.ushort(42))
      table.add_data(np.intc(42))
      table.add_data(np.uintc(42))
      table.add_data(np.int_(42))
      table.add_data(np.uint(42))
      table.add_data(np.longlong(42))
      table.add_data(np.ulonglong(42))
      table.add_data(np.half(42))
      table.add_data(np.float16(42))
      table.add_data(np.single(42))
      table.add_data(np.double(42))
      table.add_data(np.longdouble(42))
      table.add_data(np.csingle(42))
      table.add_data(np.cdouble(42))
      table.add_data(np.clongdouble(42))
      table.add_data(np.int8(42))
      table.add_data(np.int16(42))
      table.add_data(np.int32(42))
      table.add_data(np.int64(42))
      table.add_data(np.uint8(42))
      table.add_data(np.uint16(42))
      table.add_data(np.uint32(42))
      table.add_data(np.uint64(42))
      table.add_data(np.intp(42))
      table.add_data(np.uintp(42))
      table.add_data(np.float32(42))
      table.add_data(np.float64(42))
      table.add_data(np.float_(42))
      table.add_data(np.complex64(42))
      table.add_data(np.complex128(42))
      table.add_data(np.complex_(42))
  
      # Booleans
      table = wandb.Table(columns=["A"], dtype=[BooleanType])
      table.add_data(None)
      table.add_data(True)
      table.add_data(False)
      table.add_data(np.bool_(True))
  
      # Array of Numerics
      table = wandb.Table(columns=["A"], dtype=[[NumberType]])
      table.add_data(None)
      table.add_data([42])
      table.add_data(np.array([1, 0], dtype=np.byte))
      table.add_data(np.array([42, 42], dtype=np.short))
      table.add_data(np.array([42, 42], dtype=np.ushort))
      table.add_data(np.array([42, 42], dtype=np.intc))
      table.add_data(np.array([42, 42], dtype=np.uintc))
      table.add_data(np.array([42, 42], dtype=np.int_))
      table.add_data(np.array([42, 42], dtype=np.uint))
      table.add_data(np.array([42, 42], dtype=np.longlong))
      table.add_data(np.array([42, 42], dtype=np.ulonglong))
      table.add_data(np.array([42, 42], dtype=np.half))
      table.add_data(np.array([42, 42], dtype=np.float16))
      table.add_data(np.array([42, 42], dtype=np.single))
      table.add_data(np.array([42, 42], dtype=np.double))
      table.add_data(np.array([42, 42], dtype=np.longdouble))
      table.add_data(np.array([42, 42], dtype=np.csingle))
      table.add_data(np.array([42, 42], dtype=np.cdouble))
      table.add_data(np.array([42, 42], dtype=np.clongdouble))
      table.add_data(np.array([42, 42], dtype=np.int8))
      table.add_data(np.array([42, 42], dtype=np.int16))
      table.add_data(np.array([42, 42], dtype=np.int32))
      table.add_data(np.array([42, 42], dtype=np.int64))
      table.add_data(np.array([42, 42], dtype=np.uint8))
      table.add_data(np.array([42, 42], dtype=np.uint16))
      table.add_data(np.array([42, 42], dtype=np.uint32))
      table.add_data(np.array([42, 42], dtype=np.uint64))
      table.add_data(np.array([42, 42], dtype=np.intp))
      table.add_data(np.array([42, 42], dtype=np.uintp))
      table.add_data(np.array([42, 42], dtype=np.float32))
      table.add_data(np.array([42, 42], dtype=np.float64))
      table.add_data(np.array([42, 42], dtype=np.float_))
      table.add_data(np.array([42, 42], dtype=np.complex64))
      table.add_data(np.array([42, 42], dtype=np.complex128))
      table.add_data(np.array([42, 42], dtype=np.complex_))
  
      # Array of Booleans
      table = wandb.Table(columns=["A"], dtype=[[BooleanType]])
      table.add_data(None)
      table.add_data([True])
      table.add_data([False])
      table.add_data(np.array([True, False], dtype=np.bool_))
  
      # Nested arrays
      table = wandb.Table(columns=["A"])
      table.add_data([[[[1, 2, 3]]]])
      table.add_data(np.array([[[[1, 2, 3]]]]))
  
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 27 for calling a global function with example usage: test_table_typing_numpy() without return types