code: def _matches(o, pattern):
      """Match a pattern of types in a sequence."""
      if not len(o) == len(pattern):
          return False
      comps = zip(o, pattern)
      return all(isinstance(obj, kind) for obj, kind in comps)
  
imports: from collections.abc import Iterable, Mapping
  from inspect import signature, Parameter
  from inspect import getcallargs
  from inspect import getfullargspec
  import sys
  from IPython import get_ipython
  from .None import Widget, ValueWidget, Text, FloatSlider, IntSlider, Checkbox, Dropdown, VBox, Button, DOMWidget, Output
  from IPython.display import display, clear_output
  from traitlets import HasTraits, Any, Unicode, observe
  from numbers import Real, Integral
  from warnings import warn
label_desc: Use image node_id 3 for calling a global function with example usage: _matches(o, pattern) and returns: all, False