code: def _standardize(orig: str) -> str:
      """
      Standardize string given punctuation differences in the list of safe personas.
      """
      new = orig.lower().rstrip(".!?")
      string_replace = {
          "i've": "i have",
          "i ve": "i have",
          "ive": "i have",
          "i'm": "i am",
          "i m": "i am",
          "im": "i am",
          "i'll": "i will",
          "i ll": "i will",
          "don't": "do not",
          "don t": "do not",
          "dont": "do not",
          "can't": "cannot",
          "can t": "cannot",
          "cant": "cannot",
          " s": "'s",
      }
      for i, j in string_replace.items():
          new = new.replace(i, j)
      return new
  
imports: from typing import Optional
  from parlai.core.params import ParlaiParser
  from parlai.core.opt import Opt
  import json
  import random
  from parlai.tasks.blended_skill_talk.agents import raw_data_path, safe_personas_path
  from parlai.tasks.interactive.worlds import InteractiveWorld
  from parlai.tasks.self_chat.worlds import SelfChatWorld
  from parlai.utils.io import PathManager
label_desc: Use image node_id 3 for calling a global function with example usage: _standardize(orig) and returns: new