code: def get_encoders_cls(encoder_names):
      """Return valid encoder class indicated in `encoder_names`."""
      encoders_cls = {}
      for name in encoder_names:
          if name not in str2enc:
              raise ValueError("%s encoder not supported!" % name)
          encoders_cls[name] = str2enc[name]
      return encoders_cls
  
file_path: OpenNMT-py/onmt/encoders/__init__.py
imports: import os
  import importlib
  from onmt.encoders.encoder import EncoderBase
  from onmt.encoders.transformer import TransformerEncoder
  from onmt.encoders.ggnn_encoder import GGNNEncoder
  from onmt.encoders.rnn_encoder import RNNEncoder
  from onmt.encoders.cnn_encoder import CNNEncoder
  from onmt.encoders.mean_encoder import MeanEncoder
label_desc: Use image node_id 1 for calling a global function with example usage: get_encoders_cls(encoder_names) and returns: encoders_cls