code: def get_or_create(session_uuid: str):
      memory_key = MemoryIndex.get(session_uuid)
  
      if not memory_key:
          m = MemoryModel()
          m.save()
          MemoryIndex.set(session_uuid, m.key)
  
          mp = MemoryPreferencesModel()
          mp.save()
          MemoryPreferencesIndex.set(session_uuid, mp.key)
  
          return MemoryAnalysis(m)
  
      return MemoryAnalysis(memory_key.load())
  
imports: from typing import Dict, Any
  from fastapi import Request
  from fastapi.responses import JSONResponse
  from labml_db import Model, Index
  from labml_db.serializer.pickle import PickleSerializer
  from labml_db.serializer.yaml import YamlSerializer
  from labml_app.logger import logger
  from labml_app.enums import COMPUTEREnums
  from ..analysis import Analysis
  from ..series import SeriesModel, Series
  from ..series_collection import SeriesCollection
  from ..preferences import Preferences
  from ..None import helper
label_desc: Use image node_id 4 for calling the MemoryAnalysis obj's underlying member method code with example usage: obj.get_or_create(session_uuid) and returns: MemoryAnalysis, MemoryAnalysis