code: def KORNIA_UNWRAP(maybe_obj: object, typ: Any) -> Any:
      """Unwraps an optional contained value that may or not be present.
  
      Args:
          maybe_obj: the object to unwrap.
          typ: expected type after unwrap.
      """
      # TODO: this function will change after kornia/pr#1987
      return cast(typ, maybe_obj)
  
imports: from __future__ import annotations
  from typing import Any, Optional, Sequence, TypeVar, cast
  from torch import float16, float32, float64
  from typing_extensions import TypeGuard
  from kornia.core import Tensor
label_desc: Use image node_id 3 for calling a global function with example usage: KORNIA_UNWRAP(maybe_obj, typ) and returns: cast