code: def is_tarred_path(path) -> bool:
      """Check if a path is for a tarred file."""
      return path.endswith(".tar")
  
imports: import os
  import pathlib
  import shutil
  import subprocess
  from typing import Tuple
  from nemo import __version__
  from nemo import constants
  from nemo.utils import logging
label_desc: Use image node_id 3 for calling a global function with example usage: is_tarred_path(path) and returns: path