code: def write_json(
      self,
      json_dict: dict[str, Any],
      filename: str,
      overwrite: bool = False,
  ):
      fn = self.get_local_filename(filename)
      logger.info(f"Saving json {json_dict} to {fn}")
      with open(fn, "w") as fp:
          json.dump(json_dict, fp)
      self.upload_file_to_blobstore(filename, overwrite=overwrite)
  
imports: import hashlib
  import io
  import json
  import logging
  import os
  import pickle
  from dataclasses import dataclass
  import submitit
  from typing import Any, List, Optional
  from zipfile import ZipFile
  import faiss
  import numpy
  from faiss.contrib.datasets import dataset_from_name
label_desc: Use image node_id 12 for calling the BenchmarkIO obj's underlying member method code with example usage: obj.write_json(json_dict, filename, overwrite) without return types