code: def _is_iterable_of(
      val: Iterable[object], eltype: type | tuple[type, ...]
  ) -> bool:
      """Check whether the given iterable is of the given type(s)."""
      return all(isinstance(x, eltype) for x in val)
  
imports: from __future__ import annotations
  import inspect
  import os
  import re
  import sys
  import warnings
  from collections.abc import MappingView, Sized
  from enum import Enum
  from pathlib import Path
  from typing import TYPE_CHECKING, Any, Generator, Iterable, Literal, Sequence, TypeVar
  import polars
  from polars import functions
  from polars.datatypes import FLOAT_DTYPES, INTEGER_DTYPES, Boolean, Date, Datetime, Decimal, Duration, Int64, String, Time
  from polars.dependencies import _check_for_numpy
  from polars.dependencies import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: _is_iterable_of(val, eltype) and returns: all