code: def errored_revisions(rev_data: Dict) -> List:
      from dvc.utils.collections import nested_contains
  
      result = []
      for revision, data in rev_data.items():
          if nested_contains(data, "error"):
              result.append(revision)
      return result
  
imports: import hashlib
  import json
  import os
  import re
  import sys
  from typing import TYPE_CHECKING, Dict, Iterable, Iterator, List, Optional, Tuple
  import colorama
label_desc: Use image node_id 23 for calling a global function with example usage: errored_revisions(rev_data) and returns: result