code: def check_if_person(text):
      """
      Using spacy, check if the title of the Wikipedia passage is a person.
      """
      doc = NLP(text)
      is_person = False
      ents = [ent for ent in doc.ents]
      for ent in ents:
          if ent.label_ == "PERSON":
              is_person = True
      return is_person
  
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 ChunkTeacher
  from parlai.tasks.wikipedia.build import build
  from parlai.utils.misc import warn_once
  import parlai.tasks.md_gender.utils
  from copy import deepcopy
  import json
  import os
  import random
  import re
  import spacy
  from typing import List
label_desc: Use image node_id 1 for calling a global function with example usage: check_if_person(text) and returns: is_person