code: def __init__(
      self,
      autocommit=True,
      account: Optional[str] = None,
      user: Optional[str] = None,
      password: Optional[str] = None,
      database: Optional[str] = None,
      warehouse: Optional[str] = None,
      paramstyle="pyformat",
  ):
      self.account = _first_not_none(
          account, os.environ.get("SNOWFLAKE_ACCOUNT")
      )
      self.database = _first_not_none(
          database, os.environ.get("SNOWFLAKE_DATABASE")
      )
  
      self.user = _first_not_none(
          user,
          os.environ.get("SNOWFLAKE_USERNAME"),
      )
      self.password = _first_not_none(
          password,
          os.environ.get("SNOWFLAKE_PASSWORD"),
      )
  
      if self.user is None and self.password is None:
          self.user = os.environ["USER"]
          self.use_browser_auth = True
      else:
          self.use_browser_auth = False
  
      self.autocommit = autocommit
      self.warehouse = warehouse
      self.paramstyle = paramstyle
  
      self.ctx = None
  
file_path: evals/evals/utils/snowflake.py
imports: import logging
  import os
  import time
  from contextlib import contextmanager
  from typing import Optional
label_desc: Use image node_id 1 to create a new SnowflakeConnection object  with example: obj = SnowflakeConnection(autocommit, account, user, password, database, warehouse, paramstyle)