code: def register(self, serializer: ProtoSerializer) -> None:
      self._serializers[serializer.supported_format] = serializer
      self._extension_to_format.update(
          {
              ext: serializer.supported_format
              for ext in serializer.file_extensions
          }
      )
  
imports: from __future__ import annotations
  import warnings
  import typing
  from typing import Any, Collection, Optional, Protocol, TypeVar
  import google.protobuf.json_format
  import google.protobuf.message
  import google.protobuf.text_format
  import onnx
label_desc: Use image node_id 2 for calling the _Registry obj's underlying member method code with example usage: obj.register(serializer) without return types