code: def _get_all_revisions(admin=False):
      revisions_dir = foc.MIGRATIONS_REVISIONS_DIR
      if admin:
          revisions_dir = os.path.join(revisions_dir, "admin")
  
      revision_files = [
          f for f in etau.list_files(revisions_dir) if f.endswith(".py")
      ]
  
      module_prefix = __loader__.name.rsplit(".", 1)[0] + ".revisions"
      if admin:
          module_prefix = module_prefix + ".admin"
  
      revisions = []
      for filename in revision_files:
          version = filename[1:-3].replace("_", ".")
          module = module_prefix + "." + filename[:-3]
          revisions.append((version, module))
  
      return sorted(revisions, key=lambda r: Version(r[0]))
  
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 14 for calling a global function with example usage: _get_all_revisions(admin) and returns: sorted