code: def are_credentials_still_valid(awsclient):
      
      client = awsclient.get_client('lambda')
      try:
          client.list_functions()
      except GracefulExit:
          raise
      except Exception as e:
          log.debug(e)
          log.error(e)
          return 1
      return 0
docs: Check whether the credentials have expired.
  
      :param awsclient:
      :return: exit_code