Observation and action space as spaces.Dict

Can anyone give me good code example, where the observation space or the action space of an environment for a neural network has been a spaces.Dict?

I’m trying to create my own environment. My observation space consists of three different inputs and my action space contains two different actions with their own action space.
For example, my current action space looks like this:

‘’’
self.action_mutation = spaces.Discrete(4)
self.action_node = spaces.Discrete(100)

self.action_space = spaces.Dict({‘mutation’: self.action_mutation, ‘node’: self.action_node})
‘’’

But I’m not sure how to work with such spaces when I want to build my neural network.