code: def as_str(bytes_or_text, encoding="utf-8"):
      if six.PY2:
          return as_bytes(bytes_or_text, encoding)
      else:
          return as_text(bytes_or_text, encoding)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import json
  import numbers
  import re
  from model_search.proto import hparam_pb2
  import six
label_desc: Use image node_id 3 for calling a global function with example usage: as_str(bytes_or_text, encoding) and returns: as_bytes, as_text