parameters: (module="", libs=[], silent=False)
docstring: Check if Inference Engine Python API modules exists and in case of success
      environment will be set with given values.
      :param module: path to python module
      :param libs: list with paths to libraries
      :param silent: hide all output
docstring_summary: Check if Inference Engine Python API modules exists and in case of success
      environment will be set with given values.
      :param module: path to python module
      :param libs: list with paths to libraries
      :param silent: hide all output
docstring_tokens: Check if Inference Engine Python API modules exists and in case of success environment will be set with given values . : param module : path to python module : param libs : list with paths to libraries : param silent : hide all output
function: def try_to_import_ie(module="", libs=[], silent=False):
      """
      Check if Inference Engine Python API modules exists and in case of success
      environment will be set with given values.
      :param module: path to python module
      :param libs: list with paths to libraries
      :param silent: hide all output
      """
      path_to_script = os.path.join(os.path.realpath(os.path.dirname(__file__)), 'check_ie_bindings.py')
      # We need to execute python modules checker in subprocess to avoid issue with environment
      # in case if previous import was unsuccessful it can fail further imports even if sys.path
      # will be restored to initial default values.
      # To pass environment to sub-process PATH/LD_LIBRARY_PATH and PYTHONPATH are used from
      # os.environ that is set after setup_env()
      setup_env(module=module, libs=libs)
      cmd_args = [sys.executable, path_to_script, "--path_to_module", "PYTHONPATH" if module == "" else module]
      if silent:
          cmd_args.append("--silent")
  
      status = subprocess.run(cmd_args, env=os.environ)
      if status.returncode == 0:
          return True
      else:
          reset_env()
          return False
function_tokens: def try_to_import_ie ( module = "" , libs = [ ] , silent = False ) : path_to_script = os . path . join ( os . path . realpath ( os . path . dirname ( __file__ ) ) , 'check_ie_bindings.py' ) # We need to execute python modules checker in subprocess to avoid issue with environment # in case if previous import was unsuccessful it can fail further imports even if sys.path # will be restored to initial default values. # To pass environment to sub-process PATH/LD_LIBRARY_PATH and PYTHONPATH are used from # os.environ that is set after setup_env() setup_env ( module = module , libs = libs ) cmd_args = [ sys . executable , path_to_script , "--path_to_module" , "PYTHONPATH" if module == "" else module ] if silent : cmd_args . append ( "--silent" ) status = subprocess . run ( cmd_args , env = os . environ ) if status . returncode == 0 : return True else : reset_env ( ) return False