def METHOD_NAME(self, include):
    """
    Filter the reported resources in a ResourceStatus object
    Args:
        include (str, IDset, Hostlist): restrict the current set of
         reported ranks to the given ranks or hosts.
    """
    try:
        include_ranks = IDset(include)
    except ValueError:
        include_ranks = self.nodelist.index(include, ignore_nomatch=True)
    self._recalculate(include_ranks)