code: def from_spec(spec):
          
          exploration = util.get_object(
              obj=spec,
              predefined_objects=tensorforce.core.explorations.explorations
          )
          assert isinstance(exploration, Exploration)
          return exploration
docs: Creates an exploration object from a specification dict.