code: def handle_assert_exception(
      assert_object: t.Any, obj: t.Any, msg: str
  ):
      res = assert_object
      try:
          if callable(assert_object):
              res = assert_object(obj)
              assert res
          else:
              assert obj == assert_object
      except AssertionError:
          raise ValueError(f"Expected: {res}. {msg}") from None
      except Exception as e:  # pylint: disable=broad-except
          # if callable has some errors, then we raise it here
          raise ValueError(
              f"Exception while excuting '{assert_object.__name__}': {e}"
          ) from None
  
imports: from __future__ import annotations
  import typing
  from typing import TYPE_CHECKING
  import aiohttp
label_desc: Use image node_id 1 for calling a global function with example usage: handle_assert_exception(assert_object, obj, msg) without return types