code: def write(self) -> None:
      # restrict permissions to user
      with os.fdopen(
          os.open(
              self.get_tokens_file(),
              os.O_CREAT | os.O_WRONLY | os.O_TRUNC,
              0o600,
          ),
          "w",
          encoding="utf-8",
      ) as f:
          json.dump(self._tokens, f)
  
imports: from typing import Optional, Dict, Tuple
  import base64
  import collections.abc
  import os
  import json
  import logging
  from hailtop.config import get_deploy_config
  from hailtop.utils import first_extant_file
label_desc: Use image node_id 14 for calling the Tokens obj's underlying member method code with example usage: obj.write() without return types