def set_organization_id(self, org_id):
        """
        Sets the client's organization_id.  As this is needed for most
        requests, you can set it once and include it in all requests.

        Args:
          org_id: An ID of an org the user belongs to.  Will validate against
              the API.
        """
        orgs = self.get_organizations()
        orgs_by_id = {org['id']: org
                      for org in orgs}

        if org_id not in orgs_by_id:
            msg = "User %s is not in org with id %s" % (
                self.email_address, org_id
            )
            raise RuntimeError(msg)
        self.org_id = org_id
dataset/ETHPy150Open buildingenergy/buildingenergy-platform/seed/utils/api_client.py/APIClient.set_organization_id/original