docstr: Test one of many possible errors in shape of inputs.
docstr_tok: ["Test","one","of","many","possible","errors","in","shape","of","inputs","."]
code: def testInconsistentRankInputsForIW(self):
      """Test one of many possible errors in shape of inputs."""
      placeholders = {
          "log_rhos": tf.placeholder(
              dtype=tf.float32, shape=[None, None, 1]
          ),
          "discounts": tf.placeholder(
              dtype=tf.float32, shape=[None, None, 1]
          ),
          "rewards": tf.placeholder(
              dtype=tf.float32, shape=[None, None, 42]
          ),
          "values": tf.placeholder(
              dtype=tf.float32, shape=[None, None, 42]
          ),
          # Should be [None, 42].
          "bootstrap_value": tf.placeholder(
              dtype=tf.float32, shape=[None]
          ),
      }
      with self.assertRaisesRegexp(ValueError, "must have rank 2"):
          vtrace_ops.vtrace_from_importance_weights(**placeholders)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v1
  from trfl import vtrace_ops
label_desc: Use image node_id 4 for calling the VtraceTest obj's underlying member method code with example usage: obj.testInconsistentRankInputsForIW() without return types