tf.compat.v1.errors.error_code_from_exception_type