class_docstr: Detects whether a string contains any of the following personal information
  datapoints using regular expressions:
  
  - credit card
  - phone number
  - email
  - SSN
class_docstr_tok: ["Detects","whether","a","string","contains","any","of","the","following","personal","information","datapoints","using","regular","expressions",":","-","credit","card","-","phone","number","-","email","-","SSN"]
code: def __init__(self):
      self.credit_card_regex = (
          r"((?:(?:\\d{4}[- ]?){3}\\d{4}|\\d{15,16}))(?![\\d])"
      )
      self.email_regex = (
          r"([a-z0-9!#$%&'*+\/=?^_`{|.}~-]+@(?:[a-z0-9](?:[a-z0-9-]*"
          + r"[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)"
      )
      self.phone_number_regex = (
          r"\D?(\d{0,3}?)\D{0,2}(\d{3})?\D{0,2}(\d{3})\D?(\d{4})$"
      )
      self.ssn_regex = r"^\d{3}-\d{2}-\d{4}$"
  
imports: import importlib
  import math
  import re
  from enum import Enum
label_desc: Use image node_id 1 to create a new PersonalInfoDetector object from inherited base classes: object with example: obj = PersonalInfoDetector()