code: def __init__(self, logger: Optional[Logger] = None):
      if logger is not None:
          self.logger = logger
      else:
          self.logger = logging.getLogger()
          self.logger.setLevel("FATAL")
  
file_path: upgini/src/upgini/utils/features_validator.py
imports: import logging
  from logging import Logger
  from typing import List, Optional
  import pandas
  from pandas.api.types import is_object_dtype, is_integer_dtype, is_string_dtype
  from upgini.resource_bundle import bundle
  from upgini.utils.warning_counter import WarningCounter
label_desc: Use image node_id 1 to create a new FeaturesValidator object  with example: obj = FeaturesValidator(logger)