code: def extract_true_string(string_content):
      """
      remove extra characters before the actual string we are
      looking for.  The Jenkins console output is encoded using utf-8.  However, the stupid
      redirect function can only encode using ASCII.  I have googled for half a day with no
      results to how to resolve the issue.  Hence, we are going to the heat and just manually
      get rid of the junk.
  
      Parameters
      ----------
  
      string_content :  str
          contains a line read in from jenkins console
  
      :return: str: contains the content of the line after the string '[0m'
  
      """
  
      startL, found, endL = string_content.partition("[0m")
  
      if found:
          return endL
      else:
          return string_content
  
imports: import sys
  import os
  import json
  import pickle
  import copy
  import subprocess
label_desc: Use image node_id 2 for calling a global function with example usage: extract_true_string(string_content) and returns: endL, string_content