category_sample should look deeper in the code to find categories. It
currently only looks into sage.categories.all, and misses axiom or
covariant functorial construction categories like Sets.Infinite or
Sets.CartesianProducts. It's not clear whether it should include
specialized categories like
sage.combinat.ncsf_qsym.generic_basis_code.BasesOfQSymOrNCSF
an_instance should be made to work at least for the categories
discovered by category_sample, and possibly more::
sage: Sets.CartesianProducts.an_instance()
...
TypeError: __init__() takes at least 2 arguments (1 given)
CC: @simon-king-jena
Component: categories
Issue created by migration from https://trac.sagemath.org/ticket/15696