def METHOD_NAME(self) -> None:
    res = pywatchman.capabilities.synthesize(
        {"version": "1.0"}, {"optional": ["will-never-exist"], "required": []}
    )
    self.assertDictEqual(
        res, {"version": "1.0", "capabilities": {"will-never-exist": False}}
    )
    res = pywatchman.capabilities.synthesize(
        {"version": "1.0"}, {"required": ["will-never-exist"], "optional": []}
    )
    self.assertDictEqual(
        res,
        {
            "version": "1.0",
            "error": "client required capabilities [will-never-exist] "
            + "not supported by this server",
            "capabilities": {"will-never-exist": False},
        },
    )
    res = pywatchman.capabilities.synthesize(
        {"version": "3.2"}, {"optional": ["relative_root"], "required": []}
    )
    self.assertDictEqual(
        res, {"version": "3.2", "capabilities": {"relative_root": False}}
    )
    res = pywatchman.capabilities.synthesize(
        {"version": "3.3"}, {"optional": ["relative_root"], "required": []}
    )
    self.assertDictEqual(
        res, {"version": "3.3", "capabilities": {"relative_root": True}}
    )