docs: def sync_entitlements(owner, repo, source, show_tokens):
      """Sync entitlements from another repository."""
      client = get_entitlements_api()
  
      with catch_raise_api_exception():
          data, _, headers = client.entitlements_sync_with_http_info(
              owner=owner, repo=repo, data={"source": source}, show_tokens=show_tokens
          )
  
      ratelimits.maybe_rate_limit(client, headers)
      page_info = PageInfo.from_headers(headers)
      entitlements = [ent.to_dict() for ent in data.tokens]
      return entitlements, page_info