code: def get_version(tool_name, tool_command):
          
          result = {}
          for line in Bash(ShellConfig(script=tool_command, internal=True)).process():
              if line.find("command not found") >= 0:
                  VersionsCheck.LOGGER.error("Required tool '%s' not found (stopping pipeline)!", tool_name)
                  sys.exit(1)
              else:
                  version = list(re.findall(r'(\d+(\.\d+)+)+', line))[0][0]
                  result = {tool_name: Version(str(version))}
              break
          return result
docs: Get name and version of a tool defined by given command.
  
          Args:
              tool_name (str): name of the tool.
              tool_command (str): Bash one line command to get the version of the tool.
  
          Returns:
              dict: tool name and version or empty when no line has been found