class_docstr: Cast actions to a given type.
class_docstr_tok: ["Cast","actions","to","a","given","type","."]
code: def action(self, action):
      return self.type_(action)
  
imports: import argparse
  import functools
  import os
  import gym
  import gym.spaces
  import numpy
  import torch
  from torch import nn
  import pfrl
  from pfrl import experiments, explorers, replay_buffers, utils
  from pfrl.q_functions import DiscreteActionValueHead
label_desc: Use image node_id 2 for calling the CastAction obj's underlying member method code with example usage: obj.action(action) and returns: self