code: def ensure_local_files():
      """
      Ensure that filesystem is setup/filled out in a valid way
      """
      if _file_permissions:
          if not os.path.isdir(AUTH_DIR):
              os.mkdir(AUTH_DIR)
          for fn in [CONFIG_FILE]:
              contents = load_json_dict(fn)
              for key, val in list(_FILE_CONTENT[fn].items()):
                  if key not in contents:
                      contents[key] = val
              contents_keys = list(contents.keys())
              for key in contents_keys:
                  if key not in _FILE_CONTENT[fn]:
                      del contents[key]
              save_json_dict(fn, contents)
      else:
          warnings.warn(
              "Looks like you don't have 'read-write' permission to "
              "your 'home' ('~') directory"
          )
  
file_path: cufflinks/cufflinks/auth.py
imports: import os
  import json
  import warnings
  from .offline import go_offline
label_desc: Use image node_id 4 for calling a global function with example usage: ensure_local_files() without return types