code: def check_credentials():
      """Check credentials and potentially activate.
  
      Note
      ----
      If there is no credential file and we are in headless mode, we should not
      check, since credential would be automatically set to an empty string.
  
      """
      from streamlit import config
  
      if not _check_credential_file_exists() and config.get_option(
          "server.headless"
      ):
          if not config.is_manually_set("browser.gatherUsageStats"):
              # If not manually defined, show short message about usage stats gathering.
              click.secho(_TELEMETRY_HEADLESS_TEXT)
          return
      Credentials.get_current()._check_activated()
  
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 7 for calling a global function with example usage: check_credentials() without return types