code: def test_sequence_pool(self):
      model = SequencePool("cls")
      fake_input = torch.rand(8, 10, 10)
      output = model(fake_input)
      self.assertTrue(torch.equal(output, fake_input[:, 0]))
      model = SequencePool("mean")
      output = model(fake_input)
      self.assertTrue(torch.equal(output, fake_input.mean(1)))
  
imports: import itertools
  import unittest
  import numpy
  import torch
  from pytorchvideo.models.head import create_res_basic_head, create_res_roi_pooling_head, create_vit_basic_head, ResNetBasicHead, ResNetRoIHead, SequencePool
  from torch import nn
  from torchvision.ops import RoIAlign
label_desc: Use image node_id 4 for calling the TestRoIHeadHelper obj's underlying member method code with example usage: obj.test_sequence_pool() without return types