code: def test_greedy_generation(self):
      processor = self.default_processor
      model = self.default_model
  
      url = "https://huggingface.co/datasets/hf-internal-testing/fixtures-captioning/resolve/main/bus.png"
      image = Image.open(io.BytesIO(requests.get(url).content))
  
      text_prompt_coco_captioning = "Generate a coco-style caption.\n"
  
      inputs = processor(
          text=text_prompt_coco_captioning,
          images=image,
          return_tensors="pt",
      )
      generated_ids = model.generate(**inputs, max_new_tokens=10)
  
      # take the last 8 tokens (in order to skip special \n\x04 characters) and decode them
      generated_text = processor.batch_decode(
          generated_ids[:, -8:], skip_special_tokens=True
      )[0]
      self.assertEqual(
          generated_text, "A blue bus parked on the side of a road."
      )
  
imports: import io
  import unittest
  import requests
  from transformers import FuyuConfig, is_torch_available, is_vision_available
  from transformers.testing_utils import require_torch, require_torch_gpu, slow, torch_device
  from transformers.utils import cached_property
  from ...test_modeling_common import ModelTesterMixin, ids_tensor, random_attention_mask
  from ...test_pipeline_mixin import PipelineTesterMixin
label_desc: Use image node_id 3 for calling the FuyuModelIntegrationTest obj's underlying member method code with example usage: obj.test_greedy_generation() without return types