code: def install_from_config(config: [str, Path, dict]):
      requirements_files = get_config_requirements(config)
  
      if not requirements_files:
          log.warning("No requirements found in config")
          return
  
      requirements = []
      for rf in requirements_files:
          with expand_path(rf).open(encoding="utf8") as f:
              for line in f:
                  line = re.sub(r"\s", "", line.strip())
                  if (
                      line
                      and not line.startswith("#")
                      and line not in requirements
                  ):
                      requirements.append(line)
  
      for r in requirements:
          install(r)
  
file_path: DeepPavlov/deeppavlov/utils/pip_wrapper/pip_wrapper.py
imports: import os
  import re
  import subprocess
  import sys
  from logging import getLogger
  from pathlib import Path
  from deeppavlov.core.commands.utils import expand_path, parse_config
  from deeppavlov.core.data.utils import get_all_elems_from_json
label_desc: Use image node_id 3 for calling a global function with example usage: install_from_config(config) without return types