def build_expected_definition(func_name: str, routine_definition: str, comment: str) -> str:
    """
    Given the function name, the raw routine definition, and an overall comment,
    build the complete expected function definition string.

    The expected definition has:
      - A header: "def <func_name>() -> str:" (since full_data_type "STRING" maps to "str")
      - A reconstructed docstring that uses the provided comment and a "Returns:" section
        that shows "str" (the parsed return type).
      - A function body that is normalized by our _parse_routine_definition helper.

    Returns:
        The expected full function definition as a string.
    """
    header = f"def {func_name}() -> str:"
    # Build the docstring.
    wrapped_comment = textwrap.fill(comment.strip(), width=100)
    # Here we assume that if no explicit returns text is stored, we use the parsed type "str".
    wrapped_return = textwrap.fill(
        "str", width=100, initial_indent="    ", subsequent_indent="    "
    )
    doc_lines = [
        wrapped_comment,
        "",
        "Returns:",
        wrapped_return,
    ]
    indented_doc = "\n".join("    " + line for line in doc_lines)
    docstring = f'    """\n{indented_doc}\n    """\n'
    # Use our helper _parse_routine_definition to normalize the routine definition.
    expected_body = _parse_routine_definition(routine_definition)
    expected_def = f"{header}\n{docstring}{expected_body}\n"
    return expected_def

    Given the function name, the raw routine definition, and an overall comment,
    build the complete expected function definition string.

    The expected definition has:
      - A header: "def <func_name>() -> str:" (since full_data_type "STRING" maps to "str")
      - A reconstructed docstring that uses the provided comment and a "Returns:" section
        that shows "str" (the parsed return type).
      - A function body that is normalized by our _parse_routine_definition helper.

    Returns:
        The expected full function definition as a string.
    
ai/core/tests/core/test_callable_utils.py