code: def credentials_checker(url, username, password):
      
      api = HarvestAPI(url, (username, password))
      try:
          api.whoami()
      except HarvestError:
          return False
      else:
          return True
docs: Check the provided credentials using the Harvest API.