code: def random_document(prng) -> Document:
      p, q, r = prng.rand(), prng.rand(), prng.rand()
      return Document(expit(logit(p) + 1), q, expit(logit(r) - 2))
  
imports: from collections import namedtuple
  from typing import List, Optional
  import gym
  import numpy
  from gym.utils import seeding
  from gym.wrappers.time_limit import TimeLimit
  from reagent.core.dataclasses import dataclass
  from reagent.gym.envs.env_wrapper import EnvWrapper
  from reagent.gym.envs.recsim import RecsimObsPreprocessor
  from reagent.gym.envs.wrappers.recsim import ValueWrapper
  from scipy.special import expit, logit
label_desc: Use image node_id 2 for calling a global function with example usage: random_document(prng) and returns: Document