docstr: Maybe add it if it's not there.
docstr_tok: ["Maybe","add","it","if","it","'s","not","there","."]
code: def maybe_add_memory_prefix(
      cls, memory: str, self_or_partner: str, model_type: str
  ) -> str:
      """
      Maybe add it if it's not there.
      """
      if not MemoryUtils.is_opt_ft_mem_format(memory):
          memory = MemoryUtils.add_memory_prefix(
              memory, self_or_partner, model_type
          )
      return memory
  
imports: import aiohttp
  import asyncio
  from enum import Enum
  import json
  import math
  from nltk.corpus import stopwords
  from nltk.tokenize import word_tokenize
  from nltk.stem import PorterStemmer
  import os
  import random
  import string
  import time
  from typing import List, Tuple, Optional, Dict, Any, Set, Union
  from parlai.agents.ir_baseline.ir_baseline import score_match, MaxPriorityQueue
  from parlai.core.dict import DictionaryAgent
  from parlai.core.message import Message
  from parlai.core.metrics import F1Metric
  from parlai.core.torch_generator_agent import PPLMetric
  import parlai.utils.logging
  import projects.bb3.constants
  import projects.bb3.prompts
  from projects.bb3.agents.module import Module
label_desc: Use image node_id 9 for calling the MemoryUtils obj's underlying member method code with example usage: obj.maybe_add_memory_prefix(cls, memory, _or_partner, model_type) and returns: memory