def METHOD_NAME(self, device, backend):
    @torch._dynamo.optimize(backend)
    def inner(x):
        for _ in range(10):
            x = torch.sin(x)
        for _ in range(10):
            x = torch.cos(x)
        return x
    inner(torch.randn(20, 20).to(device))