def check(self, value, namespace):
if (not issubclass(type(value), self._cls) or<EOL>len(value) != len(self._cls._fields)):<EOL><INDENT>return False<EOL><DEDENT>for i, check in enumerate(self._checks):<EOL><INDENT>if not check(value[i], namespace):<EOL><INDENT>return False<EOL><DEDENT><DEDENT>return True<EOL>
Attribute _field_types is a dict from field name to type.