code: def test_invalid_window_size(self) -> None:
      with self.assertRaises(ValueError):
          RecMetric(
              world_size=8,
              my_rank=0,
              window_size=50,
              batch_size=10,
              tasks=[DefaultTaskInfo],
          )
  
file_path: torchrec/torchrec/metrics/tests/test_recmetric.py
imports: import unittest
  import torch
  from torchrec.metrics.metrics_config import DefaultTaskInfo
  from torchrec.metrics.model_utils import parse_task_model_outputs
  from torchrec.metrics.mse import MSEMetric
  from torchrec.metrics.ne import NEMetric
  from torchrec.metrics.rec_metric import RecComputeMode, RecMetric
  from torchrec.metrics.test_utils import gen_test_batch, gen_test_tasks
label_desc: Use image node_id 5 for calling the RecMetricTest obj's underlying member method code with example usage: obj.test_invalid_window_size() without return types