code: def test_sample_examples_without_references(self):
      adapter_spec = AdapterSpec(
          method=ADAPT_GENERATION,
          model="openai/ada",
          max_train_instances=1,
      )
      adapter = AdapterFactory.get_adapter(
          adapter_spec, self.tokenizer_service
      )
      all_train_instances = [
          Instance(Input(text="prompt1"), references=[]),
          Instance(Input(text="prompt2"), references=[]),
          Instance(Input(text="prompt3"), references=[]),
      ]
  
      examples = adapter.sample_examples(all_train_instances, seed=0)
      assert len(examples) == 1
  
file_path: H2O/h2o_hf/helm/src/helm/benchmark/adaptation/adapters/test_generation_adapter.py
imports: from typing import List
  from helm.benchmark.scenarios.scenario import CORRECT_TAG, create_scenario, Instance, Reference, Input, Output
  from helm.benchmark.run_specs import get_scenario_spec1, get_adapter_spec1
  from helm.benchmark.adaptation.prompt import Prompt
  from helm.benchmark.adaptation.adapter_spec import AdapterSpec
  from .adapter_factory import AdapterFactory, ADAPT_GENERATION
  from .test_adapter import TestAdapter
label_desc: Use image node_id 4 for calling the TestGenerationAdapter obj's underlying member method code with example usage: obj.test_sample_examples_without_references() without return types