code: def load_pickled_compatible(file_name):
      """
      Loads a pickled object from the specified file
      """
      try:
          import cPickle as pickle  # Use cPickle on Python 2.7
      except ImportError:
          import pickle
  
      with open(file_name, "rb") as handle:
          data = handle.read()
          if not is_python3():
              return pickle.loads(data)
          else:
              return pickle.loads(data, encoding="bytes")
  
imports: import pkgutil
  import sys
label_desc: Use image node_id 2 for calling a global function with example usage: load_pickled_compatible(file_name) and returns: pickle, pickle