code: def _get_org(server_config, label):
      
      organizations = Organization(server_config).search(
          query={u'search': u'label={0}'.format(label)}
      )
      if len(organizations) != 1:
          raise APIResponseError(
              u'Could not find exactly one organization with label "{0}". '
              u'Actual search results: {1}'.format(label, organizations)
          )
      return organizations[0].read()
docs: Find an :class:`nailgun.entities.Organization` object.
  
      :param nailgun.config.ServerConfig server_config: The server that should be
          searched.
      :param label: A string. The label of the organization to find.
      :raises APIResponseError: If exactly one organization is not found.
      :returns: An :class:`nailgun.entities.Organization` object.