code: def get_feat_dim(feat_dir):
      if feat_dir is None:
          return 0
      stdout_val = get_command_stdout(
          "feat-to-dim --print-args=false "
          "scp:{data}/feats.scp -".format(data=feat_dir)
      )
      feat_dim = int(stdout_val)
      return feat_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 14 for calling a global function with example usage: get_feat_dim(feat_dir) and returns: feat_dim, int