code: def generate_input_template(tool):
      # type: (Process) -> Dict[Text, Any]
      
      template = yaml.comments.CommentedMap()
      for inp in realize_input_schema(tool.tool["inputs"], tool.schemaDefs):
          name = shortname(inp["id"])
          value, comment = generate_example_input(
              inp['type'], inp.get('default', None))
          template.insert(0, name, value, comment)
      return template
docs: Generate an example input object for the given CWL process.