code: def encode(value, encoding):
      return value.encode(encoding)
  
imports: import errno
  import logging
  import os
  import random
  import shutil
  import stat
  import string
  import sys
  import six
  import libarchive
  import libarchive._libarchive
  from pathlib2 import PurePath
label_desc: Use image node_id 2 for calling a global function with example usage: encode(value, encoding) and returns: value