code: def testCreateTooManyBatchEpisodeIdsRaisesError(self):
      spec = [
          specs.TensorSpec([3], tf.float32, "action"),
          [
              specs.TensorSpec([5], tf.float32, "lidar"),
              specs.TensorSpec([3, 2], tf.float32, "camera"),
          ],
      ]
      replay_buffer = episodic_replay_buffer.EpisodicReplayBuffer(
          spec, capacity=2
      )
  
      with self.assertRaisesRegex(
          ValueError,
          "Buffer cannot create episode_ids when num_episodes 3 > capacity 2.",
      ):
          replay_buffer.create_episode_ids(num_episodes=3)
  
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 import specs
  from tf_agents.replay_buffers import episodic_replay_buffer
  from tf_agents.utils import common
  from tf_agents.utils import test_utils
  from tensorflow.python.ops import list_ops
label_desc: Use image node_id 5 for calling the EpisodicReplayBufferTest obj's underlying member method code with example usage: obj.testCreateTooManyBatchEpisodeIdsRaisesError() without return types