code: def get_act_dim_from_act_space(action_space):
      if action_space.__class__.__name__ == "Discrete":
          act_dim = action_space.n
      else:
          act_dim = action_space.high - action_space.low + 1
      return act_dim
  
file_path: PARL/benchmark/torch/mappo/train.py
imports: import os
  import time
  import numpy
  import torch
  import argparse
  from itertools import chain
  from env_wrappers import VectorEnv
  from simple_model import SimpleModel
  from parl.algorithms import MAPPO
  from simple_agent import SimpleAgent
  from mappo_buffer import SeparatedReplayBuffer
  from parl.utils import logger, summary
label_desc: Use image node_id 1 for calling a global function with example usage: get_act_dim_from_act_space(action_space) and returns: act_dim