“cmd.label” labels one or more atoms in a selection by evaluating an Python expression referencing properties for each atom.
def label(selection="(all)", expression="", quiet=1):
label | api