code: def main():
      """Tiff2fsspec command line usage main function."""
      parser = argparse.ArgumentParser(
          "tiff2fsspec",
          description="Write fsspec ReferenceFileSystem for TIFF file.",
      )
      parser.add_argument(
          "tifffile", type=str, help="path to the local TIFF input file"
      )
      parser.add_argument(
          "url",
          type=str,
          help="remote URL of TIFF file without file name",
      )
      parser.add_argument(
          "--out",
          type=str,
          default=None,
          help="path to the JSON output file",
      )
      parser.add_argument(
          "--series",
          type=int,
          default=None,
          help="index of series in file",
      )
      parser.add_argument(
          "--level",
          type=int,
          default=None,
          help="index of level in series",
      )
      parser.add_argument(
          "--key",
          type=int,
          default=None,
          help="index of page in file or series",
      )
      parser.add_argument(
          "--chunkmode",
          type=int,
          default=None,
          help="mode used for chunking {None, pages}",
      )
      parser.add_argument(
          "--ver",
          type=int,
          default=None,
          help="version of ReferenceFileSystem",
      )
      args = parser.parse_args()
  
      tiff2fsspec(
          args.tifffile,
          args.url,
          out=args.out,
          key=args.key,
          series=args.series,
          level=args.level,
          chunkmode=args.chunkmode,
          version=args.ver,
      )
  
label_desc: Use image node_id 1 for calling a global function with example usage: main() without return types