code: def _get_run_input_fields_for_applet(executable_input, **kwargs):
          '''
          Takes the same arguments as the run method. Creates an input
          hash for the /applet-xxxx/run method.
          '''
          # Although it says "for_applet", this is factored out of
          # DXApplet because apps currently use the same mechanism
          for unsupported_arg in ['stage_instance_types', 'stage_folders', 'rerun_stages', 'ignore_reuse_stages']:
              if kwargs.get(unsupported_arg):
                  raise DXError(unsupported_arg + ' is not supported for applets (only workflows)')
  
          return DXExecutable._get_run_input_common_fields(executable_input, **kwargsf _get_run_input_fields_for_applet(executable_input, **kwargs):
          '''
          Takes the same arguments as the run method. Creates an input
          hash for the /applet-xxxx/run method.
          '''
          # Although it says "for_applet", this is factored out of
          # DXApplet because apps currently use the same mechanism
          for unsupported_arg in ['stage_instance_types', 'stage_folders', 'rerun_stages', 'ignore_reuse_stages']:
              if kwargs.get(unsupported_arg):
                  raise DXError(unsupported_arg + ' is not supported for applets (only workflows)')
  
          return DXExecutable._get_run_input_common_fields(executable_input, **kwargs)
docs: Takes the same arguments as the run method. Creates an input
          hash for the /applet-xxxx/run method.