docs: def get_decoder(cls, ds, var):
          """
          Class method to get the right decoder class that can decode the
          given dataset and variable
  
          Parameters
          ----------
          %(CFDecoder.can_decode.parameters)s
  
          Returns
          -------
          CFDecoder
              The decoder for the given dataset that can decode the variable
              `var`"""
          for decoder_cls in cls._registry:
              if decoder_cls.can_decode(ds, var):
                  return decoder_cls(ds)
          return CFDecoder(ds)