docstr: Check if the given credit card number is valid based on regex pattern.
  
  Args:
      card_number (str): credit card number to be checked.
  
  Returns (str): True if the credit card number is valid, otherwise False.
code: def _is_valid_credit_card(card_number) -> bool:
      """Check if the given credit card number is valid based on regex pattern.
  
      Args:
          card_number (str): credit card number to be checked.
  
      Returns (str): True if the credit card number is valid, otherwise False.
      """
  
      pattern = r"^\d{4}[- ]?\d{4}[- ]?\d{4}[- ]?\d{4}$"
      return re.search(pattern, card_number) is not None
  
file_path: pandas-ai/pandasai/helpers/anonymizer.py
imports: import random
  import re
  import string
  import pandas
label_desc: Use image node_id 3 for calling the Anonymizer obj's underlying member method code with example usage: obj._is_valid_credit_card(card_number) and returns: unknown