def METHOD_NAME(mocker):
    env = {}
    token_path = "/var/run/secrets/kubernetes.io/serviceaccount/token"
    #  crt_path = "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"
    orig_exist = os.path.exists
    def exists(path):
        return True if path in token_path else orig_exist(path)
    def magic(path, *args, **kwargs):
        if path == token_path:
            return io.StringIO("token")
    mocker.patch("wandb.util.open", magic, create=True)
    mocker.patch("wandb.util.os.path.exists", exists)
    env["KUBERNETES_SERVICE_HOST"] = "k8s"
    env["KUBERNETES_PORT_443_TCP_PORT"] = "123"
    env["HOSTNAME"] = "test"
    return env