code: def asbytes(s):
      if isinstance(s, bytes):
          return s
      return s.encode("latin1")
  
imports: import pickle
  import os
  import zlib
  import inspect
  from io import BytesIO
  from .numpy_pickle_utils import _ZFILE_PREFIX
  from .numpy_pickle_utils import Unpickler
  from .numpy_pickle_utils import _ensure_native_byte_order
label_desc: Use image node_id 2 for calling a global function with example usage: asbytes(s) and returns: s, s