code: def test_Directions2Amplitude_inputs():
      input_map = dict(
          args=dict(
              argstr="%s",
          ),
          display_debug=dict(
              argstr="-debug",
          ),
          display_info=dict(
              argstr="-info",
          ),
          environ=dict(
              nohash=True,
              usedefault=True,
          ),
          in_file=dict(
              argstr="%s",
              extensions=None,
              mandatory=True,
              position=-2,
          ),
          num_peaks=dict(
              argstr="-num %s",
          ),
          out_file=dict(
              argstr="%s",
              extensions=None,
              hash_files=False,
              keep_extension=False,
              name_source=["in_file"],
              name_template="%s_amplitudes.mif",
              position=-1,
          ),
          peak_directions=dict(
              argstr="-direction %s",
              sep=" ",
          ),
          peaks_image=dict(
              argstr="-peaks %s",
              extensions=None,
          ),
          quiet_display=dict(
              argstr="-quiet",
          ),
      )
      inputs = Directions2Amplitude.input_spec()
  
      for key, metadata in list(input_map.items()):
          for metakey, value in list(metadata.items()):
              assert getattr(inputs.traits()[key], metakey) == value
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_Directions2Amplitude_inputs() without return types