code: def _get_dataframe_rows(df, image_id):
      left = df["ImageID"].searchsorted(image_id, "left")
      right = df["ImageID"].searchsorted(image_id, "right")
      return df[left:right]
  
imports: from collections import defaultdict
  import csv
  from glob import glob
  import logging
  import os
  import random
  import warnings
  import pandas
  import eta.core.image
  import eta.core.serial
  import eta.core.utils
  import eta.core.web
  import fiftyone
  import fiftyone.core.fields
  import fiftyone.core.labels
  import fiftyone.utils.aws
  import fiftyone.utils.data
  import fiftyone.utils.image
label_desc: Use image node_id 23 for calling a global function with example usage: _get_dataframe_rows(df, image_id) and returns: df