def search(self, query=None, **kwargs):
if query is not None:<EOL><INDENT>return self._search_collection(query)<EOL><DEDENT>return self.list()<EOL>
query a Singularity registry for a list of images. 
     If query is None, collections are listed. 

    EXAMPLE QUERIES:

    [empty]             list all collections in singularity hub
    vsoch               do a general search for collection "vsoch"
    vsoch/dinosaur      list details of container vsoch/dinosaur
                          tag "latest" is used by default, and then the most recent
    vsoch/dinosaur:tag  list details for specific container