code: def convert_text(text):
      """
      Normalize text.
      """
      new_text = text.lower()
      for x in gend_utils.CONTRACTION_SPACES:
          if x[1] in text:
              new_text = new_text.replace(x[1], x[0])
      for x in gend_utils.CONTRACTION_LEFT_SPACES:
          if x[1] in text:
              new_text = new_text.replace(x[1], x[0])
      for x in gend_utils.CONTRACTION_RIGHT_SPACES:
          if x[1] in text:
              new_text = new_text.replace(x[1], x[0])
  
      return new_text
  
imports: from typing import Optional
  from parlai.core.params import ParlaiParser
  from parlai.core.opt import Opt
  from parlai.core.message import Message
  from parlai.core.teachers import FixedDialogTeacher
  from parlai.tasks.convai2.agents import BothTeacher
  from parlai.tasks.md_gender.build import build
  from parlai.utils.misc import warn_once
  import parlai.tasks.md_gender.utils
  from copy import deepcopy
  import json
  import random
  import os
label_desc: Use image node_id 1 for calling a global function with example usage: convert_text(text) and returns: new_text