def METHOD_NAME(self, frame, child):
    datum = StackInstanceDatum(id=child.id, value=f"${child.id}") if child.is_instance \
        else StackDatum(id=child.id, value=f"${child.id}")
    frame.add_datum(datum)