We probably want to raise an error if `options` is not `None` and our search function doesn't accept it.  (Also `inspect` up there is unused.)