code: def create_and_check_cpmant_model(self, config, input_ids, *args):
      model = CpmAntModel(config=config)
      model.to(torch_device)
      model.eval()
  
      hidden_states = model(**input_ids).last_hidden_state
  
      self.parent.assertEqual(
          hidden_states.shape,
          (self.batch_size, self.seq_length, config.hidden_size),
      )
  
imports: import unittest
  from transformers.testing_utils import is_torch_available, require_torch, tooslow
  from ...generation.test_utils import torch_device
  from ...test_configuration_common import ConfigTester
  from ...test_modeling_common import ModelTesterMixin, ids_tensor
  from ...test_pipeline_mixin import PipelineTesterMixin
label_desc: Use image node_id 4 for calling the CpmAntModelTester obj's underlying member method code with example usage: obj.create_and_check_cpmant_model(config, input_ids) without return types