code: def _matches(o, pattern):
      
      if not len(o) == len(pattern):
          return False
      comps = zip(o,pattern)
      return all(isinstance(obj,kind) for obj,kind in comps)
docs: Match a pattern of types in a sequence.