code: def _import_model_class(model_class):
      components = model_class.split(".")
      mod = __import__(
          ".".join(components[:-1]), fromlist=[components[-1]]
      )
      klass = getattr(mod, components[-1])
      return klass
  
file_path: cornac/cornac/serving/app.py
imports: import os
  import sys
  import inspect
  from datetime import datetime, timezone
  from csv import writer
  from cornac.data import Dataset, Reader
  from cornac.eval_methods import BaseMethod
  from cornac.metrics import *
label_desc: Use image node_id 2 for calling a global function with example usage: _import_model_class(model_class) and returns: klass