code: def _load_sample(
      self, sample, text_only
  ) -> Generator[InputSample, None, None]:
      if text_only:
          yield InputSample(None, sample["text"], sample["meta"])
      yield InputSample(sample["image"], sample["text"], sample["meta"])
  
file_path: calamari/calamari_ocr/ocr/dataset/datareader/raw.py
imports: from typing import Generator
  from tfaip.data.pipeline.definitions import PipelineMode
  from calamari_ocr.ocr.dataset.params import SampleMeta, InputSample
  from calamari_ocr.ocr.dataset.datareader.base import CalamariDataGenerator
label_desc: Use image node_id 3 for calling the RawDataReader obj's underlying member method code with example usage: obj._load_sample(sample, text_only) without return types