def METHOD_NAME(original):
    def magic(path, *args, **kwargs):
        if path == config_path:
            return io.StringIO('{"foo": "bar"}')
        elif path == resource_path:
            return io.StringIO('{"hosts":["a", "b"]}')
        elif path == secrets_path:
            return io.StringIO("WANDB_TEST_SECRET=TRUE")
        else:
            return original(path, *args, **kwargs)
    return magic