class_docstr: Here we also overwrite some of the tests of test_modeling_common.py, as YOLOS does not use input_ids, inputs_embeds,
  attention_mask and seq_length.
class_docstr_tok: ["Here","we","also","overwrite","some","of","the","tests","of","test_modeling_common.py",",","as","YOLOS","does","not","use","input_ids",",","inputs_embeds",",","attention_mask","and","seq_length","."]
code: def setUp(self):
      self.model_tester = YolosModelTester(self)
      self.config_tester = ConfigTester(
          self,
          config_class=YolosConfig,
          has_text_modality=False,
          hidden_size=37,
      )
  
imports: import unittest
  from transformers import YolosConfig
  from transformers.testing_utils import require_torch, require_vision, slow, torch_device
  from transformers.utils import cached_property, is_torch_available, is_vision_available
  from ...test_configuration_common import ConfigTester
  from ...test_modeling_common import ModelTesterMixin, floats_tensor
  from ...test_pipeline_mixin import PipelineTesterMixin
label_desc: Use image node_id 2 for calling the YolosModelTest obj's underlying member method code with example usage: obj.setUp() without return types