<｜begin▁of▁sentence｜>### Instruction:
As a landscaper, when organizing a plan for a new garden design, you may need to check if a specific plant variety already has a unique identification assigned to it. This is similar to how you might want to use the UniqueIdGenerator in NetworkX to check if a particular node already has a unique ID assigned to it in a graph.
### Response:
from networkx.utils import UniqueIdGenerator

# Create a UniqueIdGenerator object
unique_id_gen = UniqueIdGenerator()

# Add a unique ID for 'node1'
id_node1 = unique_id_gen['node1']

# Check if 'node1' is already in the generator
print('node1' in unique_id_gen)

# Check if 'node2' is already in the generator
print('node2' in unique_id_gen)
<|EOT|>
