code: def strict_to_content(content: StrictContentType):
      if isinstance(content, Mapping):
          content = _convert_dict(content)
  
      if isinstance(content, glm.Content):
          return content
      else:
          raise TypeError(
              "Expected a `glm.Content` or a `dict(parts=...)`.\n"
              f"Got type: {type(content)}\n"
              f"Value: {content}\n"
          )
  
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 10 for calling a global function with example usage: strict_to_content(content) and returns: content