code: def pipeline(self, request) -> SamplingPipeline:
      pipeline = SamplingPipeline(request.param)
      yield pipeline
      del pipeline
      torch.cuda.empty_cache()
  
file_path: generative-models/tests/inference/test_inference.py
imports: import numpy
  from PIL import Image
  import pytest
  from pytest import fixture
  import torch
  from typing import Tuple
  from sgm.inference.api import model_specs, SamplingParams, SamplingPipeline, Sampler, ModelArchitecture
  import sgm.inference.helpers
label_desc: Use image node_id 1 for calling the TestInference obj's underlying member method code with example usage: obj.pipeline(request) without return types