docstr: input:
      isover_batch: shape (ep_num, tr_num, 1)
  output: 
      max_tr_num: max avail transitions number in all episodes
docstr_tok: ["input",":","isover_batch",":","shape","(","ep_num",",","tr_num",",","1",")","output",":","max_tr_num",":","max","avail","transitions","number","in","all","episodes"]
code: def _get_avail_transitions_num(self, isover_batch):
      """input:
          isover_batch: shape (ep_num, tr_num, 1)
      output:
          max_tr_num: max avail transitions number in all episodes
      """
      ep_num = isover_batch.shape[0]
      max_tr_num = 0
      for ep_id in range(ep_num):
          for tr_id in range(self.config["episode_limit"]):
              if isover_batch[ep_id, tr_id, 0] == 1:
                  if tr_id + 1 >= max_tr_num:
                      max_tr_num = tr_id + 1
                  break
      return max_tr_num
  
file_path: PARL/benchmark/torch/coma/sc2_agent.py
imports: import numpy
  import parl
  import torch
  from torch.distributions import Categorical
label_desc: Use image node_id 7 for calling the Agents obj's underlying member method code with example usage: obj._get_avail_transitions_num(isover_batch) and returns: max_tr_num