code: def interact_model(config: Union[str, Path, dict]) -> None:
      """Start interaction with the model described in corresponding configuration file."""
      model = build_model(config)
  
      while True:
          args = []
          for in_x in model.in_x:
              args.append((input("{}::".format(in_x)),))
              # check for exit command
              if args[-1][0] in {"exit", "stop", "quit", "q"}:
                  return
  
          pred = model(*args)
          if len(model.out_params) > 1:
              pred = zip(*pred)
  
          print(">>", *pred)
  
file_path: DeepPavlov/deeppavlov/core/commands/infer.py
imports: import json
  import sys
  from itertools import islice
  from logging import getLogger
  from pathlib import Path
  from typing import Optional, Union
  from deeppavlov.core.commands.utils import import_packages, parse_config
  from deeppavlov.core.common.chainer import Chainer
  from deeppavlov.core.common.params import from_params
  from deeppavlov.core.data.utils import jsonify_data
  from deeppavlov.download import deep_download
  from deeppavlov.utils.pip_wrapper import install_from_config
label_desc: Use image node_id 2 for calling a global function with example usage: interact_model(config) without return types