def METHOD_NAME(self):
    def foo(**kwargs):
        results = {k: v * 2 for k, v in kwargs.items()}
        return results
    def compose_like(fn, data):
        data = fn(data)
        return data
    d = {"a": 1, "b": 2}
    actual = compose_like(to_kwargs(foo), d)
    self.assertDictEqual(actual, {"a": 2, "b": 4})
    with self.assertRaises(TypeError):
        actual = compose_like(foo, d)