code: def _get_peer_type_param(self, peer_type):
      
      params = None
      if self._get_resource_root().version >= 11:
        params = {
          'type':   peer_type,
        }
      return params
docs: Checks if the resource_root's API version is >= 11 and construct type param.