code: def _render_question_crowd_html(
      question_template: CritiqueQuestionTemplate,
  ) -> str:
      """Render the Crowd HTML for a question."""
      question_input_crowd_html: str
      if question_template.question_type == QuestionType.FREE_RESPONSE:
          question_input_crowd_html = textwrap.dedent(
              f"""\
              <crowd-text-area name="{question_template.name}" required></crowd-text-area>"""
          )
      elif (
          question_template.question_type
          == QuestionType.MULTIPLE_CHOICE
      ):
          question_input_crowd_html = (
              _render_multiple_choice_options_crowd_html(
                  question_template.name, question_template.options
              )
          )
      elif question_template.question_type == QuestionType.CHECKBOX:
          question_input_crowd_html = (
              _render_checkbox_options_crowd_html(
                  question_template.name, question_template.options
              )
          )
      return textwrap.dedent(
          f"""\
          <div>
              <p>{_format_template_tags(question_template.text)}</p>
              {_indent_to_level(question_input_crowd_html, 3)}
          </div>"""
      )
  
imports: import csv
  from datetime import datetime
  import os
  from threading import Lock
  from typing import Dict, List, Sequence
  import textwrap
  import re
  from helm.common.critique_request import CritiqueQuestionTemplate, CritiqueRequest, CritiqueTaskTemplate, QuestionType
  from helm.common.general import ensure_directory_exists
  from helm.common.hierarchical_logger import hlog
label_desc: Use image node_id 4 for calling a global function with example usage: _render_question_crowd_html(question_template) and returns: textwrap