code: def make_engine_cls(config):
      from snips_nlu import SnipsNLUEngine
      from snips_nlu_metrics import Engine
  
      class ConfigEngine(Engine):
          def __init__(self):
              self.engine = None
              self.config = config
  
          def fit(self, dataset):
              self.engine = SnipsNLUEngine(self.config).fit(dataset)
              return self
  
          def parse(self, text):
              return self.engine.parse(text)
  
      return ConfigEngine
  
file_path: snips-nlu/snips_nlu/cli/metrics.py
imports: from __future__ import print_function, unicode_literals
label_desc: Use image node_id 1 for calling a global function with example usage: make_engine_cls(config) and returns: ConfigEngine, self, self