code: def create_and_check_model(
      self,
      config,
      attn_bias,
      attn_edge_type,
      spatial_pos,
      in_degree,
      out_degree,
      input_nodes,
      input_edges,
      labels,
  ):
      model = GraphormerModel(config=config)
      model.to(torch_device)
      model.eval()
      result = model(
          input_nodes=input_nodes,
          attn_bias=attn_bias,
          in_degree=in_degree,
          out_degree=out_degree,
          spatial_pos=spatial_pos,
          input_edges=input_edges,
          attn_edge_type=attn_edge_type,
          labels=labels,
      )
      self.parent.assertEqual(
          result.last_hidden_state.shape,
          (self.batch_size, self.graph_size + 1, self.hidden_size),
      )
  
imports: import copy
  import inspect
  import os
  import tempfile
  import unittest
  from transformers import GraphormerConfig, is_torch_available
  from transformers.testing_utils import require_torch, slow, torch_device
  from ...test_configuration_common import ConfigTester
  from ...test_modeling_common import ModelTesterMixin, _config_zero_init, ids_tensor
  from ...test_pipeline_mixin import PipelineTesterMixin
label_desc: Use image node_id 4 for calling the GraphormerModelTester obj's underlying member method code with example usage: obj.create_and_check_model(config, attn_bias, attn_edge_type, spatial_pos, in_degree, out_degree, input_nodes, input_edges, labels) without return types