code: def _unicode_to_utf(contents):
      if isinstance(contents, dict):
          return {
              _unicode_to_utf(key): _unicode_to_utf(value)
              for key, value in contents.iteritems()
          }
      elif isinstance(contents, list):
          return [_unicode_to_utf(element) for element in contents]
      elif isinstance(contents, unicode):
          return contents.encode("utf-8")
      else:
          return contents
  
imports: import re
  import json
  import platform
label_desc: Use image node_id 2 for calling a global function with example usage: _unicode_to_utf(contents) and returns: unknown, unknown, contents, contents