code: def __setitem__(self, key, value):
      if isinstance(value, dict) is False:
          raise TypeError(f"got {type(value)} instead of dict")
      existing_record = self.get_record(key)
      if existing_record is None:
          record = db.JsonStorage(
              name=key,
              resource_group=self.resource_group,
              resource_id=self.resource_id,
              company_id=ctx.company_id,
              content=value,
          )
          db.session.add(record)
      else:
          existing_record.content = value
      db.session.commit()
  
file_path: mindsdb/mindsdb/interfaces/storage/json.py
imports: from mindsdb.interfaces.storage import db
  from mindsdb.interfaces.storage.fs import RESOURCE_GROUP
  from mindsdb.utilities.context import context
  from mindsdb.utilities import log
label_desc: Use image node_id 2 for calling the JsonStorage obj's underlying member method code with example usage: obj.__setitem__(key, value) without return types