code: def test_list_type():
      assert ListType(int).assign([]) == ListType(int, 0)
      assert ListType(int).assign([1, 2, 3]) == ListType(int, 3)
      assert ListType(int).assign([1, "a", 3]) == InvalidType()
  
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 13 for calling a global function with example usage: test_list_type() without return types