def somefunc(*, a, b, num_replicates, replicate_index): frame = inspect.currentframe() return ancestry._build_provenance("the_cmd", 42, frame)
def somefunc(a, b): frame = inspect.currentframe() return ancestry._build_provenance("cmd", 1234, frame)