code: def _create_misaligned_trajectories(self):
      def _concat_nested_tensors(nest1, nest2):
          return tf.nest.map_structure(
              lambda t1, t2: tf.concat([t1, t2], axis=0), nest1, nest2
          )
  
      # Order of args for trajectory methods:
      # observation, action, policy_info, reward, discount
      ts1 = _concat_nested_tensors(
          trajectory.first(
              (),
              tf.constant([2]),
              (),
              tf.constant([1.0], dtype=tf.float32),
              [1.0],
          ),
          trajectory.boundary(
              (),
              tf.constant([1]),
              (),
              tf.constant([0.0], dtype=tf.float32),
              [1.0],
          ),
      )
      ts2 = _concat_nested_tensors(
          trajectory.last(
              (),
              tf.constant([1]),
              (),
              tf.constant([3.0], dtype=tf.float32),
              [1.0],
          ),
          trajectory.first(
              (),
              tf.constant([1]),
              (),
              tf.constant([2.0], dtype=tf.float32),
              [1.0],
          ),
      )
      ts3 = _concat_nested_tensors(
          trajectory.boundary(
              (),
              tf.constant([2]),
              (),
              tf.constant([0.0], dtype=tf.float32),
              [1.0],
          ),
          trajectory.last(
              (),
              tf.constant([1]),
              (),
              tf.constant([4.0], dtype=tf.float32),
              [1.0],
          ),
      )
  
      return [ts1, ts2, ts3]
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  import tensorflow
  from tf_agents.metrics import tf_metrics
  from tf_agents.specs import tensor_spec
  from tf_agents.trajectories import trajectory
  from tensorflow.python.eager import context
label_desc: Use image node_id 3 for calling the TFMetricsTest obj's underlying member method code with example usage: obj._create_misaligned_trajectories() and returns: list, tf