def METHOD_NAME(self):
    schema = {"type": "object"}
    Point = namedtuple("Point", ["x", "y"])
    type_checker = Draft202012Validator.TYPE_CHECKER.redefine(
        "object", is_object_or_named_tuple,
    )
    CustomValidator = extend(
        Draft202012Validator,
        type_checker=type_checker,
    )
    validator = CustomValidator(schema)
    validator.validate(Point(x=4, y=5))