code: def _get_tmp_account_id(cls, writer_spec):
      
      # pick tmp id iff tmp bucket is set explicitly
      if cls.TMP_BUCKET_NAME_PARAM in writer_spec:
        return writer_spec.get(cls._TMP_ACCOUNT_ID_PARAM, None)
      return cls._get_account_id(writer_spec)
docs: Returns the account id to use with tmp bucket.