code: def assert_dict_contains_subset(
      dict_obj: Dict[Any, Any], expected_subset: Dict[Any, Any]
  ) -> bool:
      """Check if the dict_obj contains the expected_subset.
  
      Args:
          dict_obj (Dict[Any, Any]): Dict object to be checked.
          expected_subset (Dict[Any, Any]): Subset expected to be contained in
              dict_obj.
  
      Returns:
          bool: Whether the dict_obj contains the expected_subset.
      """
  
      for key, value in expected_subset.items():
          if key not in dict_obj.keys() or _any(dict_obj[key] != value):
              return False
      return True
  
file_path: lavis/lavis/common/annotator/uniformer/mmcv/utils/testing.py
imports: import sys
  from collections.abc import Iterable
  from runpy import run_path
  from shlex import split
  from typing import Any, Dict, List
  from unittest.mock import patch
label_desc: Use image node_id 3 for calling a global function with example usage: assert_dict_contains_subset(dict_obj, expected_subset) and returns: True, False