def METHOD_NAME(self):
    objectname = self.arguments[0]
    modname, classname = objectname.rsplit(".", 1)
    module = importlib.import_module(modname)
    cls = getattr(module, classname)
    schema = cls.resolve_references(cls._schema)
    properties = self.options.get("properties", None)
    dont_collapse_table = "dont-collapse-table" in self.options
    result = []
    if not dont_collapse_table:
        html = "<details><summary><a>Click to show table</a></summary>"
        raw_html = nodes.raw("", html, format="html")
        result += [raw_html]
    # create the table from the object
    result.append(prepare_schema_table(schema, cls._rootschema, props=properties))
    if not dont_collapse_table:
        html = "</details>"
        raw_html = nodes.raw("", html, format="html")
        result += [raw_html]
    return result