class_docstr: Tests the Component base class to implement framework-agnostic functional
  units.
docstr: Tests, whether an Env can be specified simply by its absolute class.
docstr_tok: ["Tests",",","whether","an","Env","can","be","specified","simply","by","its","absolute","class","."]
code: def test_unregistered_envs(self):
      """Tests, whether an Env can be specified simply by its absolute class."""
      env_cls = (
          "ray.rllib.examples.env.stateless_cartpole.StatelessCartPole"
      )
      env = from_config(env_cls, {"config": 42.0})
      state, _ = env.reset()
      self.assertTrue(state.shape == (2,))
  
imports: from abc import ABCMeta, abstractmethod
  from gymnasium.spaces import Discrete
  import numpy
  from pathlib import Path
  import unittest
  from ray.rllib.utils.exploration.exploration import Exploration
  from ray.rllib.utils.framework import try_import_tf, try_import_torch
  from ray.rllib.utils.from_config import from_config
  from ray.rllib.utils.test_utils import check, framework_iterator
label_desc: Use image node_id 2 for calling the TestFrameWorkAgnosticComponents obj's underlying member method code with example usage: obj.test_unregistered_envs() without return types