code: def is_local(self):
      return is_local_file(self.url)
  
imports: from pathlib import Path
  import subprocess
  import shutil
  import os
  import hashlib
  from snakemake.common import get_snakemake_searchpaths, is_local_file, parse_uri
  from snakemake.exceptions import WorkflowError
  from snakemake.logging import logger
  from snakemake_interface_common.utils import lazy_property
label_desc: Use image node_id 2 for calling the Image obj's underlying member method code with example usage: obj.is_local() and returns: is_local_file