def METHOD_NAME(self, element_ids):
    """
    Allows for slicing:
     - elements[1:10]
     - elements[4]
     - elements[1:10:2]
     - elements[[1,2,5]]
     - elements[array([1,2,5])]
    """
    try:
        i = searchsorted(self.element_id, element_ids)
        elements = self.slice_by_index(i)
    except TypeError:
        msg = 'Error with Solid slice; did you mean to use slice_by_index?\n'
        msg += '  self.element_id=%s\n' % self.element_id
        msg += '  element_ids=%s\n' % element_ids
        raise TypeError(msg)
    return elements