def METHOD_NAME(self, layer, input_shape, kwargs=None):
    x = tf.ones(input_shape)
    def fn():
        layer(x, **(kwargs or {}))
    default_iters = 10000
    iters = kwargs.pop("iters", default_iters) if kwargs else default_iters
    self._run(fn, iters)