def _assert_tensorflow_version():
    "Check that we're using a compatible TF version."
    (major, minor, _) = tf.version.VERSION.split('.')
    if ((int(major) not in (1, 2)) or ((int(major) == 1) and (int(minor) < 15))):
        raise RuntimeError(('Tensorflow version >= 1.15, < 3 is required. Found (%s). Please install the latest 1.x or 2.x version from https://github.com/tensorflow/tensorflow. ' % tf.version.VERSION))
    if (int(major) == 2):
        tf.compat.v1.logging.warning(('Tensorflow version (%s) found. Note that TFMA support for TF 2.0 is currently in beta' % tf.version.VERSION))
Check that we're using a compatible TF version.
def _assert_tensorflow_version():
    
    (major, minor, _) = tf.version.VERSION.split('.')
    if ((int(major) not in (1, 2)) or ((int(major) == 1) and (int(minor) < 15))):
        raise RuntimeError(('Tensorflow version >= 1.15, < 3 is required. Found (%s). Please install the latest 1.x or 2.x version from https://github.com/tensorflow/tensorflow. ' % tf.version.VERSION))
    if (int(major) == 2):
        tf.compat.v1.logging.warning(('Tensorflow version (%s) found. Note that TFMA support for TF 2.0 is currently in beta' % tf.version.VERSION))