def search(self, query=None, args=None):
if query is not None:<EOL><INDENT>if query.endswith('<STR_LIT:/>'):  <EOL><INDENT>return self._collection_search(query)<EOL><DEDENT>elif query.startswith('<STR_LIT:/>'):  <EOL><INDENT>return self._container_search(query, across_collections=True)<EOL><DEDENT>elif "<STR_LIT:/>" in query or "<STR_LIT::>" in query:<EOL><INDENT>return self._container_search(query)<EOL><DEDENT>return self._collection_search(query=query)<EOL><DEDENT>return self._search_all()<EOL>
query a Singularity registry for a list of images. 
     If query is None, collections are listed. 

    EXAMPLE QUERIES:

    [empty]             list all collections in registry
    vsoch               do a general search for the expression "vsoch"
    vsoch/              list all containers in collection vsoch
    /dinosaur           list containers across collections called "dinosaur"
    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