parameters: (tool_name: str, args: List[str])
return_statement: return subprocess_complete.returncode
docstring: Configure logging, setup environment and run a subprocess with kwiver tool in it.
  
      Args:
          tool_name: Name of the tool that would be run as a subprocess
          args: Command line argument provided by the user for the tool
  
      Return:
          Return code for the subprocess that runs the tool
docstring_summary: Configure logging, setup environment and run a subprocess with kwiver tool in it.
docstring_tokens: Configure logging setup environment and run a subprocess with kwiver tool in it .
function: def _kwiver_tools(tool_name: str, args: List[str]) -> int:
      """
      Configure logging, setup environment and run a subprocess with kwiver tool in it.
  
      Args:
          tool_name: Name of the tool that would be run as a subprocess
          args: Command line argument provided by the user for the tool
  
      Return:
          Return code for the subprocess that runs the tool
      """
      vital_logging._configure_logging()
      assert tool_name in KWIVER_SUPPORTED_TOOLS, f"Unsupported tool {tool_name} specified"
      tool_environment = _setup_environment()
      tool_path = os.path.join(KWIVER_BIN_DIR, tool_name)
      assert os.path.exists(tool_path), f"Tool {tool_name} not available in {tool_path}"
      args.insert(0, tool_path)
      subprocess_complete = subprocess.run(args, shell=False, check=False, env=tool_environment)
      return subprocess_complete.returncode
function_tokens: def _kwiver_tools ( tool_name : str , args : List [ str ] ) -> int : vital_logging . _configure_logging ( ) assert tool_name in KWIVER_SUPPORTED_TOOLS , f"Unsupported tool {tool_name} specified" tool_environment = _setup_environment ( ) tool_path = os . path . join ( KWIVER_BIN_DIR , tool_name ) assert os . path . exists ( tool_path ) , f"Tool {tool_name} not available in {tool_path}" args . insert ( 0 , tool_path ) subprocess_complete = subprocess . run ( args , shell = False , check = False , env = tool_environment ) return subprocess_complete . returncode