code: def get_ivector_dim(ivector_dir=None):
      if ivector_dir is None:
          return 0
      stdout_val = get_command_stdout(
          "feat-to-dim --print-args=false "
          "scp:{dir}/ivector_online.scp -".format(dir=ivector_dir)
      )
      ivector_dim = int(stdout_val)
      return ivector_dim
  
imports: from __future__ import print_function
  from __future__ import division
  import argparse
  import logging
  import math
  import os
  import subprocess
  import sys
  import threading
label_desc: Use image node_id 12 for calling a global function with example usage: get_ivector_dim(ivector_dir) and returns: ivector_dim, int