code: def test_inference_no_head(self):
      with torch.no_grad():
          model = EsmModel.from_pretrained(
              "Rocketknight1/esm2_t6_8M_UR50D"
          )
          model.eval()
  
          input_ids = torch.tensor(
              [[0, 6, 4, 13, 5, 4, 16, 12, 11, 7, 2]]
          )
          output = model(input_ids)[0]
          # compare the actual values for a slice.
          expected_slice = torch.tensor(
              [
                  [
                      [0.1444, 0.5413, 0.3248],
                      [0.3034, 0.0053, 0.3108],
                      [0.3228, -0.2499, 0.3415],
                  ]
              ]
          )
          self.assertTrue(
              torch.allclose(
                  output[:, :3, :3], expected_slice, atol=1e-4
              )
          )
  
imports: import unittest
  from transformers import EsmConfig, is_torch_available
  from transformers.testing_utils import TestCasePlus, require_torch, slow, torch_device
  from ...test_configuration_common import ConfigTester
  from ...test_modeling_common import ModelTesterMixin, ids_tensor, random_attention_mask
label_desc: Use image node_id 2 for calling the EsmModelIntegrationTest obj's underlying member method code with example usage: obj.test_inference_no_head() without return types