code: def is_part_dict(d):
      return "text" in d or "inline_data" in d
  
imports: from __future__ import annotations
  from collections.abc import Iterable, Mapping
  import io
  import mimetypes
  import pathlib
  import typing
  from typing import Any, TypedDict, Union
  from google.ai import generativelanguage
label_desc: Use image node_id 6 for calling a global function with example usage: is_part_dict(d) and returns: unknown