<｜begin▁of▁sentence｜>### Instruction:
Given a UniqueIdGenerator instance where 'apple' and 'banana' have already been assigned unique IDs, how can you override the unique ID for 'apple' to be a specific value, such as 100, and then retrieve the current IDs for both 'apple' and 'banana'?
### Response:
from networkx.utils import UniqueIdGenerator

# Initialize a UniqueIdGenerator instance
uid_gen = UniqueIdGenerator()

# Generate unique IDs
id1 = uid_gen['apple']
id2 = uid_gen['banana']

# Override the ID for 'apple'
uid_gen['apple'] = 100

# Access the IDs again
current_apple_id = uid_gen['apple']
current_banana_id = uid_gen['banana']

print('Apple ID:', current_apple_id)
print('Banana ID:', current_banana_id)
<|EOT|>
