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: Converts a string into a list with a separator.
  
  Args:
    item: String that needs to be separated into a list by a given separator.
          List item is also accepted but will take no effect.
    separator: String with which the `item` will be splited.
  
  Returns:
    List that is a splited version of a given input string.
      e.g. Input: `1.0, 2.0, 3.0` with `, ` separator
           Output: [1.0, 2.0, 3.0]
docstr_tok: ["Converts","a","string","into","a","list","with","a","separator",".","Args",":","item",":","String","that","needs","to","be","separated","into","a","list","by","a","given","separator",".","List","item","is","also","accepted","but","will","take","no","effect",".","separator",":","String","with","which","the","`","item","`","will","be","splited",".","Returns",":","List","that","is","a","splited","version","of","a","given","input","string",".","e.g",".","Input",":","`","1.0",",","2.0",",","3.0","`","with","`",",","`","separator","Output",":","[","1.0",",","2.0",",","3.0","]"]
code: def convert_to_list(self, item, separator):
      """Converts a string into a list with a separator.
  
      Args:
        item: String that needs to be separated into a list by a given separator.
              List item is also accepted but will take no effect.
        separator: String with which the `item` will be splited.
  
      Returns:
        List that is a splited version of a given input string.
          e.g. Input: `1.0, 2.0, 3.0` with `, ` separator
               Output: [1.0, 2.0, 3.0]
      """
      out = None
      if not isinstance(item, list):
          if "range" in item:
              # If arg `item` is a single string, then create a list with just
              # the item.
              out = [item]
          else:
              # arg `item` can come in as the following:
              # `1.0, 1.1, 1.2, 1.4`
              # if requirements were defined without the `range()` format.
              # In such a case, create a list separated by `separator` which is
              # an empty string (' ') in this case.
              out = item.split(separator)
              for i in range(len(out)):
                  out[i] = out[i].replace(",", "")
  
      # arg `item` is a list already.
      else:
          out = [item]
  
      return out
  
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 4 for calling the ConfigCompatChecker obj's underlying member method code with example usage: obj.convert_to_list(item, separator) and returns: out