code: def test_const_type():
      wb_type = ConstType(1)
      assert wb_type.assign(1) == wb_type
      assert wb_type.assign("a") == InvalidType()
      assert wb_type.assign(2) == 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 10 for calling a global function with example usage: test_const_type() without return types