code: def get_credentials():
      """Returns the credentials that will be sent to plotly."""
      credentials = tools.get_credentials_file()
      session_credentials = session.get_session_credentials()
      for credentials_key in credentials:
          # checking for not false, but truthy value here is the desired behavior
          session_value = session_credentials.get(credentials_key)
          if session_value is False or session_value:
              credentials[credentials_key] = session_value
      return credentials
  
label_desc: Use image node_id 1 for calling a global function with example usage: get_credentials() and returns: credentials