code: def _per_arm_time_step_batch(
      self, batch_size, global_obs_dim, arm_obs_dim
  ):
      return ts.TimeStep(
          tf.constant(
              ts.StepType.FIRST,
              dtype=tf.int32,
              shape=[batch_size],
              name="step_type",
          ),
          tf.constant(
              0.0, dtype=tf.float32, shape=[batch_size], name="reward"
          ),
          tf.constant(
              1.0, dtype=tf.float32, shape=[batch_size], name="discount"
          ),
          {
              bandit_spec_utils.GLOBAL_FEATURE_KEY: tf.constant(
                  np.array(range(batch_size * global_obs_dim)),
                  dtype=tf.float32,
                  shape=[batch_size, global_obs_dim],
                  name="observation",
              ),
              bandit_spec_utils.PER_ARM_FEATURE_KEY: tf.constant(
                  np.array(
                      range(
                          batch_size * self._num_actions * arm_obs_dim
                      )
                  ),
                  dtype=tf.float32,
                  shape=[batch_size, self._num_actions, arm_obs_dim],
                  name="observation",
              ),
              bandit_spec_utils.NUM_ACTIONS_FEATURE_KEY: tf.ones(
                  [batch_size], dtype=tf.int32
              )
              * (self._num_actions - 1),
          },
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  import numpy
  import tensorflow
  from tf_agents.bandits.networks import global_and_arm_feature_network
  from tf_agents.bandits.policies import neural_linucb_policy
  from tf_agents.bandits.specs import utils
  from tf_agents.networks import network
  from tf_agents.specs import tensor_spec
  from tf_agents.trajectories import time_step
  from tf_agents.utils import common
  from tf_agents.utils import test_utils
label_desc: Use image node_id 9 for calling the NeuralLinUCBPolicyTest obj's underlying member method code with example usage: obj._per_arm_time_step_batch(batch_size, global_obs_dim, arm_obs_dim) and returns: ts