code: def prepare_inputs(
      example,
      tokenizer,
      doc_stride=2048,
      max_length=4096,
      assertion=False,
  ):
      example = get_strided_contexts_and_ans(
          example,
          tokenizer,
          doc_stride=doc_stride,
          max_length=max_length,
          assertion=assertion,
      )
  
      return example
  
file_path: H2O/h2o_flexgen/benchmark/third_party/transformers/examples/research_projects/jax-projects/big_bird/prepare_natural_questions.py
imports: import os
  import numpy
  from tqdm import tqdm
  import jsonlines
label_desc: Use image node_id 4 for calling a global function with example usage: prepare_inputs(example, tokenizer, doc_stride, max_length, assertion) and returns: example