code: def shape(x):
      """Change str to List[int]
  
      >>> shape('3,5')
      [3, 5]
      >>> shape(' [3, 5] ')
      [3, 5]
  
      """
  
      # x: ' [3, 5] ' -> '3, 5'
      x = x.strip()
      if x[0] == "[":
          x = x[1:]
      if x[-1] == "]":
          x = x[:-1]
  
      return list(map(int, x.split(",")))
  
file_path: espnet/egs/wsj_mix/asr1/local/merge_scp2json.py
imports: import argparse
  import codecs
  import json
  import logging
  import sys
  from io import open
  from espnet.utils.cli_utils import get_commandline_args
label_desc: Use image node_id 1 for calling a global function with example usage: shape(x) and returns: list