code: def register(
      self, type_name: str, resource_getter: Union[type, callable]
  ):
      self._registry[type_name] = resource_getter
  
file_path: aim/aim/ext/transport/remote_tracking.py
imports: from typing import Dict, Union
  import aim.ext.transport.proto.remote_tracking_pb2
  import aim.ext.transport.proto.remote_tracking_pb2_grpc
  import aim.ext.transport.message_utils
  from aim.ext.transport.handlers import get_handler
  from aim.storage.treeutils import encode_tree, decode_tree
label_desc: Use image node_id 2 for calling the ResourceTypeRegistry obj's underlying member method code with example usage: obj.register(type_name, resource_getter) without return types