def METHOD_NAME(self, mapping_ident, **options):
    if options["no_names"]:
        namespace = {}
    else:
        namespace = MAPPING_SPECIAL_VALUES
    try:
        adapter = doc_adapter_from_cname(mapping_ident)
    except KeyError:
        index_name, x, type_ = mapping_ident.partition(":")
        mapping = manager.index_get_mapping(index_name, type_) or {}
    else:
        mapping = adapter.mapping
    for key in (k.strip() for k in options["transforms"].split(",")):
        if key:
            self.stderr.write(f"applying transform: {key}\n", style_func=lambda x: x)
            mapping = ALL_TRANSFORMS[key](mapping)
    print_formatted(
        mapping,
        namespace,
        dict_sort_key=mapping_sort_key,
        stream=options["outfile"],
    )