def METHOD_NAME(result, target, delta=0):
    """Compare counts dictionary to targets."""
    # Don't use get_counts method which converts hex
    output = result.data(0)["counts"]
    assertDictAlmostEqual(output, target, delta=delta)