code: def _is_matched_shape(
      left: tuple[int, ...], right: tuple[int, ...]
  ) -> bool:
      if (left is None) or (right is None):
          return False
  
      if len(left) != len(right):
          return False
  
      for i, j in zip(left, right):
          if i == -1 or j == -1:
              continue
          if i == j:
              continue
          return False
      return True
  
imports: from __future__ import annotations
  import json
  import logging
  import typing
  from functools import lru_cache
  from starlette.requests import Request
  from starlette.responses import Response
  from ...exceptions import BadInput
  from ...exceptions import InvalidArgument
  from ...exceptions import UnprocessableEntity
  from ...grpc.utils import LATEST_PROTOCOL_VERSION
  from ...grpc.utils import import_generated_stubs
  from ..service.openapi import SUCCESS_DESCRIPTION
  from ..service.openapi.specification import MediaType
  from ..service.openapi.specification import Schema
  from ..types import LazyType
  from ..utils import LazyLoader
  from ..utils.http import set_cookies
  from .base import IODescriptor
label_desc: Use image node_id 12 for calling a global function with example usage: _is_matched_shape(left, right) and returns: True, False, False, False