code: def get_dataset_revision(name):
      """Gets the current revision of the given dataset.
  
      Args:
          name: the name of the dataset
  
      Returns:
          the dataset revision string
      """
      conn = foo.get_db_conn()
      dataset_doc = conn.datasets.find_one(
          {"name": name}, {"version": 1}
      )
      if dataset_doc is None:
          raise ValueError("Dataset '%s' not found" % name)
  
      return dataset_doc.get("version", None)
  
imports: import bisect
  import logging
  import os
  from packaging.requirements import Requirement
  from packaging.version import Version
  import eta.core.utils
  import fiftyone
  import fiftyone.constants
  import fiftyone.core.odm
  import fiftyone.core.utils
label_desc: Use image node_id 4 for calling a global function with example usage: get_dataset_revision(name) and returns: dataset_doc