code: def _org_find(api_method, org_id, query, first_page_size=100):
      
      if "limit" not in query:
          query["limit"] = min(first_page_size, 1000)
  
      while True:
          resp = api_method(org_id, query)
          for result in resp["results"]:
              yield result
  
          # set up next query
          if resp["next"] is not None:
              query["starting"] = resp["next"]
              query["limit"] = min(query["limit"] * 2, 1000)
          else:
              break
docs: Takes an API method handler ``dxpy.api.org_find...`` and calls it with
      *org_id* and *query*, then wraps a generator around its output. Used by
      :meth:`org_find_members` and :meth:`org_find_projects` below.
  
      :param first_page_size: The number of results that the initial API call will return.
      :type first_page_size: int