def METHOD_NAME(cfg):
    if cfg.env == 'ball_in_cup_catch':
        domain_name = 'ball_in_cup'
        task_name = 'catch'
    elif cfg.env == 'point_mass_easy':
        domain_name = 'point_mass'
        task_name = 'easy'
    else:
        domain_name = cfg.env.split('_')[0]
        task_name = '_'.join(cfg.env.split('_')[1:])
     # per dreamer: https://github.com/danijar/dreamer/blob/02f0210f5991c7710826ca7881f19c64a012290c/wrappers.py#L26
    camera_id = 2 if domain_name == 'quadruped' else 0
    current_dir = os.path.dirname(os.path.realpath(__file__))
    mockobs = pkl.load(open(os.path.join(current_dir, cfg.obs_path), "rb"))
    low = np.amin(mockobs)
    high = np.amax(mockobs)
    mockobs = np.random.randint(low=11, high=228, size=mockobs.shape, dtype=np.uint8)
    env = MockEnv(mockobs)
    env = FrameStack(env, k=cfg.frame_stack)
    env.seed(cfg.seed)
    assert env.action_space.low.min() >= -1
    assert env.action_space.high.max() <= 1
    return env