def setup(catalog, name, context):
    """Set up index called name in given catalog.

        Use name for index name and attribute to index. Set up
        index for interface or class context.
        """
