code: def write_cache(env, cache):
      with env.begin(write=True) as txn:
          cursor = txn.cursor()
          cursor.putmulti(cache, dupdata=False, overwrite=True)
  
file_path: mmocr/tools/dataset_converters/textrecog/lmdb_converter.py
imports: import argparse
  import json
  import os
  import os.path
  import cv2
  import lmdb
  import numpy
  from mmocr.utils import list_from_file
label_desc: Use image node_id 3 for calling a global function with example usage: write_cache(env, cache) without return types