class_docstr: The retriever of REALM outputting the retrieved evidence block and whether the block has answers as well as answer
  positions."
  
      Parameters:
          block_records (`np.ndarray`):
              A numpy array which cantains evidence texts.
          tokenizer ([`RealmTokenizer`]):
              The tokenizer to encode retrieved texts.
code: def __init__(self, block_records, tokenizer):
      super().__init__()
      self.block_records = block_records
      self.tokenizer = tokenizer
  
file_path: H2O/h2o_flexgen/benchmark/third_party/transformers/src/transformers/models/realm/retrieval_realm.py
imports: import os
  from typing import Optional, Union
  import numpy
  from huggingface_hub import hf_hub_download
  from transformers import AutoTokenizer
  from ...utils import logging
label_desc: Use image node_id 1 to create a new RealmRetriever object  with example: obj = RealmRetriever(block_records, tokenizer)