code: def get_credentials_file(*args):
      """Return specified args from `~/.plotly_credentials`. as dict.
  
      Returns all if no arguments are specified.
  
      Example:
          get_credentials_file('username')
  
      """
      # Read credentials from file if possible
      credentials = utils.load_json_dict(CREDENTIALS_FILE, *args)
      if not credentials:
          # Credentials could not be read, use defaults
          credentials = copy.copy(FILE_CONTENT[CREDENTIALS_FILE])
  
      return credentials
  
imports: from __future__ import absolute_import
  import urllib
  import warnings
  import copy
  from _plotly_utils import optional_imports
  import _plotly_utils.exceptions
  from _plotly_utils.files import ensure_writable_plotly_dir
  from chart_studio import session, utils
  from chart_studio.files import CONFIG_FILE, CREDENTIALS_FILE, FILE_CONTENT
label_desc: Use image node_id 4 for calling a global function with example usage: get_credentials_file() and returns: credentials