code: def register_encoder(
      cls, name: str
  ) -> _typing.Callable[
      [_typing.Type[base_encoder.BaseEncoderMaintainer]],
      _typing.Type[base_encoder.BaseEncoderMaintainer],
  ]:
      def register_encoder(
          _encoder: _typing.Type[base_encoder.BaseEncoderMaintainer],
      ) -> _typing.Type[base_encoder.BaseEncoderMaintainer]:
          if not issubclass(
              _encoder, base_encoder.BaseEncoderMaintainer
          ):
              raise TypeError
          else:
              cls[name] = _encoder
              return _encoder
  
      return register_encoder
  
imports: import typing
  from autogl.utils import universal_registry
  from .None import base_encoder
label_desc: Use image node_id 1 for calling the EncoderUniversalRegistry obj's underlying member method code with example usage: obj.register_encoder(cls, name) and returns: register_encoder, _encoder