code: def is_polars_dtype(
      dtype: Any, *, include_unknown: bool = False
  ) -> bool:
      """Indicate whether the given input is a Polars dtype, or dtype specialisation."""
      try:
          if dtype == Unknown:
              # does not represent a realisable dtype, so ignore by default
              return include_unknown
          else:
              return isinstance(dtype, (DataType, DataTypeClass))
      except TypeError:
          return False
  
imports: from __future__ import annotations
  import contextlib
  import ctypes
  import functools
  import re
  import sys
  from datetime import date, datetime, time, timedelta
  from decimal import Decimal
  from typing import TYPE_CHECKING, Any, Collection, ForwardRef, Optional, Union, get_args, overload
  from polars.datatypes import Array, Binary, Boolean, Categorical, DataType, DataTypeClass, Date, Datetime, Decimal, Duration, Field, Float32, Float64, Int8, Int16, Int32, Int64, List, Null, Object, String, Struct, Time, UInt8, UInt16, UInt32, UInt64, Unknown
  from polars.dependencies import numpy
  from polars.dependencies import pyarrow
label_desc: Use image node_id 2 for calling a global function with example usage: is_polars_dtype(dtype) and returns: include_unknown, isinstance, False