code: def _test_valid(self, weights, values, expected):
      static_op = weights_broadcast_ops.broadcast_weights(
          weights=weights, values=values
      )
      weights_placeholder = array_ops.placeholder(dtypes_lib.float32)
      values_placeholder = array_ops.placeholder(dtypes_lib.float32)
      dynamic_op = weights_broadcast_ops.broadcast_weights(
          weights=weights_placeholder, values=values_placeholder
      )
      with self.cached_session():
          self.assertAllEqual(expected, self.evaluate(static_op))
          self.assertAllEqual(
              expected,
              dynamic_op.eval(
                  feed_dict={
                      weights_placeholder: weights,
                      values_placeholder: values,
                  }
              ),
          )
  
imports: import numpy
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors_impl
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import weights_broadcast_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 2 for calling the BroadcastWeightsTest obj's underlying member method code with example usage: obj._test_valid(weights, values, expected) without return types