class_docstr: Memory-mapped iteration over a JSONL file.
docstr: Return a dictionary of data based on a single JSON line.
code: def _build_data_from_text(self, text):
      """Return a dictionary of data based on a single JSON line."""
      try:
          record = json.loads(text)
      except Exception as e:
          logging.error(f"Exception: {e}")
          logging.error(f"datapoint: {text}")
          raise e
      return record
  
imports: import datetime
  import json
  import multiprocessing
  import os
  import pickle
  import time
  from functools import partial
  from typing import Callable, List, Optional, Type
  import numpy
  import torch
  from nemo.core import Dataset
  from nemo.utils import AppState, logging
label_desc: Use image node_id 2 for calling the JSONLMemMapDataset obj's underlying member method code with example usage: obj._build_data_from_text(text) and returns: record