code: def get_command_line_flag(
      input_spec, is_flag_type=False, input_name=None
  ):
      """
      Generates the command line flag for a given input
      """
      flag, flag_sep = None, None
      if input_spec.argstr:
          if "=" in input_spec.argstr:
              if (
                  input_spec.argstr.split("=")[1] == "0"
                  or input_spec.argstr.split("=")[1] == "1"
              ):
                  flag = input_spec.argstr
              else:
                  flag = input_spec.argstr.split("=")[0].strip()
                  flag_sep = "="
          elif input_spec.argstr.split("%")[0]:
              flag = input_spec.argstr.split("%")[0].strip()
      elif is_flag_type:
          flag = ("--%s" % input_name + " ").strip()
      return flag, flag_sep
  
file_path: nipype/nipype/utils/nipype2boutiques.py
imports: import os
  import sys
  import simplejson
  from ..scripts.instance import import_module
label_desc: Use image node_id 10 for calling a global function with example usage: get_command_line_flag(input_spec, is_flag_type, input_name) and returns: flag,  flag_sep