code: def register_decoder(name: str, features: Union[str, List[str]]):
      if isinstance(features, str):
          features = [features]
  
      def wrap(cls):
          for feature in features:
              feature_registry = get_decoder_registry().get(feature, {})
              feature_registry[name] = cls
              get_decoder_registry()[feature] = feature_registry
          return cls
  
      return wrap
  
file_path: ludwig/ludwig/decoders/registry.py
imports: from typing import Dict, List, Type, Union
  from ludwig.api_annotations import DeveloperAPI
  from ludwig.decoders.base import Decoder
  from ludwig.utils.registry import Registry
label_desc: Use image node_id 2 for calling a global function with example usage: register_decoder(name, features) and returns: wrap, cls