code: def format_text(text, lower=True):
      """
      Add spaces around punctuation.
      """
      if lower:
          text = text.lower()
      for punc in PUNCTUATION_LST:
          text = text.replace(punc[1], punc[0])
  
      return text
  
file_path: ParlAI/parlai/tasks/md_gender/utils.py
imports: import os
  import random
  from collections import defaultdict
  from parlai.tasks.md_gender.build import build
label_desc: Use image node_id 5 for calling a global function with example usage: format_text(text, lower) and returns: text