code: def _hardlink(src, dst):
      if hasattr(os, "link"):
          os.link(src, dst)
      else:
          shutil.copyfile(src, dst)
  
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 9 for calling a global function with example usage: _hardlink(src, dst) without return types