class_docstr: Class that checks configuration versions and dependency compatibilities.
  
  `ConfigCompatChecker` checks a given set of configurations and their versions
  against supported versions and dependency rules defined in `.ini` config file.
  For project `TensorFlow Builder`, it functions as a sub-module for the builder
  service that validates requested build configurations from a client prior to
  initiating a TensorFlow build.
class_docstr_tok: ["Class","that","checks","configuration","versions","and","dependency","compatibilities",".","`","ConfigCompatChecker","`","checks","a","given","set","of","configurations","and","their","versions","against","supported","versions","and","dependency","rules","defined","in","`",".ini","`","config","file",".","For","project","`","TensorFlow","Builder","`",",","it","functions","as","a","sub-module","for","the","builder","service","that","validates","requested","build","configurations","from","a","client","prior","to","initiating","a","TensorFlow","build","."]
docstr: Initializes a configuration compatibility checker.
  
  Args:
    usr_config: Dict of all configuration(s) whose version compatibilities are
                to be checked against the rules defined in the `.ini` config
                file.
    req_file: String that is the full name of the `.ini` config file.
                e.g. `config.ini`
docstr_tok: ["Initializes","a","configuration","compatibility","checker",".","Args",":","usr_config",":","Dict","of","all","configuration","(","s",")","whose","version","compatibilities","are","to","be","checked","against","the","rules","defined","in","the","`",".ini","`","config","file",".","req_file",":","String","that","is","the","full","name","of","the","`",".ini","`","config","file",".","e.g",".","`","config.ini","`"]
code: def __init__(self, usr_config, req_file):
      """Initializes a configuration compatibility checker.
  
      Args:
        usr_config: Dict of all configuration(s) whose version compatibilities are
                    to be checked against the rules defined in the `.ini` config
                    file.
        req_file: String that is the full name of the `.ini` config file.
                    e.g. `config.ini`
      """
      # ConfigCompatChecker class variables.
      self.usr_config = usr_config
      self.req_file = req_file
      self.warning_msg = []
      self.error_msg = []
      # Get and store requirements.
      reqs_all = self.get_all_reqs()
      self.required = reqs_all["required"]
      self.optional = reqs_all["optional"]
      self.unsupported = reqs_all["unsupported"]
      self.dependency = reqs_all["dependency"]
  
      self.successes = []
      self.failures = []
  
file_path: tensorflow/tensorflow/tools/tensorflow_builder/compat_checker/compat_checker.py
imports: import configparser
  import re
  import sys
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.util import tf_inspect
label_desc: Use image node_id 1 to create a new ConfigCompatChecker object  with example: obj = ConfigCompatChecker(usr_config, req_file)