code: def is_thunk_type(thunk: ThunkCallableType) -> ThunkType:
      res = cast(ThunkType, thunk)
      return res
  
imports: import copy
  import sys
  import warnings
  from abc import ABC, abstractmethod
  from collections.abc import Sequence
  from typing import TYPE_CHECKING, Any, Callable, Optional, Protocol, TypeVar, Union, cast
  import pytensor
  from pytensor.configdefaults import config
  from pytensor.graph.basic import Apply, Variable
  from pytensor.graph.utils import MetaObject, TestValueError, add_tag_trace, get_variable_trace_string
label_desc: Use image node_id 1 for calling a global function with example usage: is_thunk_type(thunk) and returns: res