code: def test_classes_type():
      wb_classes = data_types.Classes(
          [
              {"id": 1, "name": "cat"},
              {"id": 2, "name": "dog"},
              {"id": 3, "name": "horse"},
          ]
      )
  
      wb_class_type = wandb.wandb_sdk.data_types.helper_types.classes._ClassesIdType.from_obj(
          wb_classes
      )
      assert wb_class_type.assign(1) == wb_class_type
      assert wb_class_type.assign(0) == 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 18 for calling a global function with example usage: test_classes_type() without return types