code: def test_reshape_labels(
      self, frame_classification_model, logits_len, labels_len
  ):
      model = frame_classification_model.eval()
  
      logits = torch.ones(4, logits_len, 2)
      labels = torch.ones(4, labels_len)
      logits_len = torch.tensor([6, 7, 8, 9])
      labels_len = torch.tensor([5, 6, 7, 8])
      labels_new, labels_len_new = model.reshape_labels(
          logits=logits,
          labels=labels,
          logits_len=logits_len,
          labels_len=labels_len,
      )
      assert labels_new.size(1) == logits.size(1)
      assert torch.equal(labels_len_new, torch.tensor([6, 7, 8, 9]))
  
imports: import copy
  import os
  import pytest
  import torch
  from omegaconf import DictConfig, ListConfig
  from nemo.collections.asr.data import audio_to_label
  from nemo.collections.asr.models import EncDecClassificationModel, EncDecFrameClassificationModel, configs
  from nemo.utils.config_utils import assert_dataclass_signature_match
label_desc: Use image node_id 1 for calling the TestEncDecFrameClassificationModel obj's underlying member method code with example usage: obj.test_reshape_labels(frame_classification_model, logits_len, labels_len) without return types