with ops.name_scope(None, "foo"):
        a = constant_op.constant(1.0, name="a")
        distribute_lib.get_replica_context().merge_call(lambda _: _)
        b = constant_op.constant(2.0, name="b")