code: def __init__(
      self,
      parent,
      batch_size=13,
      image_size=64,
      num_channels=3,
      num_encoder_blocks=4,
      depths=[2, 2, 2, 2],
      sr_ratios=[8, 4, 2, 1],
      hidden_sizes=[16, 32, 64, 128],
      downsampling_rates=[1, 4, 8, 16],
      num_attention_heads=[1, 2, 4, 8],
      is_training=True,
      use_labels=True,
      hidden_act="gelu",
      hidden_dropout_prob=0.1,
      attention_probs_dropout_prob=0.1,
      initializer_range=0.02,
      num_labels=3,
      scope=None,
  ):
      self.parent = parent
      self.batch_size = batch_size
      self.image_size = image_size
      self.num_channels = num_channels
      self.num_encoder_blocks = num_encoder_blocks
      self.sr_ratios = sr_ratios
      self.depths = depths
      self.hidden_sizes = hidden_sizes
      self.downsampling_rates = downsampling_rates
      self.num_attention_heads = num_attention_heads
      self.is_training = is_training
      self.use_labels = use_labels
      self.hidden_act = hidden_act
      self.hidden_dropout_prob = hidden_dropout_prob
      self.attention_probs_dropout_prob = attention_probs_dropout_prob
      self.initializer_range = initializer_range
      self.num_labels = num_labels
      self.scope = scope
  
imports: import unittest
  from transformers import is_torch_available, is_vision_available
  from transformers.models.auto import get_values
  from transformers.testing_utils import require_accelerate, require_torch, require_torch_accelerator, require_torch_fp16, slow, torch_device
  from ...test_configuration_common import ConfigTester
  from ...test_modeling_common import ModelTesterMixin, floats_tensor, ids_tensor
  from ...test_pipeline_mixin import PipelineTesterMixin
label_desc: Use image node_id 1 to create a new PvtModelTester object  with example: obj = PvtModelTester(parent, batch_size, image_size, num_channels, num_encoder_blocks, depths, sr_ratios, hidden_sizes, downsampling_rates, num_attention_heads, is_training, use_labels, hidden_act, hidden_dropout_prob, attention_probs_dropout_prob, initializer_range, num_labels, scope)