class_docstr: Credentials class.
docstr: Check if streamlit is activated.
  
  Used by `streamlit run script.py`
docstr_tok: ["Check","if","streamlit","is","activated",".","Used","by","`","streamlit","run","script.py","`"]
code: def _check_activated(self, auto_resolve=True):
      """Check if streamlit is activated.
  
      Used by `streamlit run script.py`
      """
      try:
          self.load(auto_resolve)
      except (Exception, RuntimeError) as e:
          _exit(str(e))
  
      if self.activation is None or not self.activation.is_valid:
          _exit("Activation email not valid.")
  
imports: import json
  import os
  import sys
  import textwrap
  from collections import namedtuple
  from datetime import datetime
  from typing import Optional
  from uuid import uuid4
  import click
  import toml
  from streamlit import env_util, file_util, util
  from streamlit.logger import get_logger
label_desc: Use image node_id 5 for calling the Credentials obj's underlying member method code with example usage: obj._check_activated(auto_resolve) without return types