code: def get_cached_credentials_filename(role_name, role_arn):
      
      filename_p1 = role_name.replace('/','-')
      filename_p2 = role_arn.replace('/', '-').replace(':', '_')
      return os.path.join(os.path.join(os.path.expanduser('~'), '.aws'), 'cli/cache/%s--%s.json' %
                          (filename_p1, filename_p2))
docs: Construct filepath for cached credentials (AWS CLI scheme)
  
      :param role_name:
      :param role_arn:
      :return: