code: def try_import_rarfile():
      """Try import rarfile at runtime.
  
      Returns
      -------
      rarfile module if found. Raise ImportError otherwise
  
      """
      msg = "rarfile is required, you can install by first `sudo apt-get install unrar` \
          and then `pip install rarfile --user` (note that this is unofficial PYPI package)."
      return try_import("rarfile", msg)
  
imports: import os
  import errno
  import contextlib
  from pathlib import Path
  import tarfile
  import zipfile
label_desc: Use image node_id 8 for calling a global function with example usage: try_import_rarfile() and returns: try_import