def _render_code_snippet(repo_id: str, subset: Optional[str] = None):
    """Render the code snippet to use feature_mapping to load a dataset and log its records."""

    from rich.console import Console, Group
    from rich.syntax import Syntax
    from rich.panel import Panel
    from rich import box

    from_hub_args = [f'repo_id="{repo_id}"']
    if subset:
        from_hub_args.append(f'subset="{subset}"')

    from_hub_args = ", ".join(from_hub_args)

    title = "Customize the dataset settings"
    message = """
    No questions were found in the dataset's features. A default question for 'quality' has been added.
    If you want to customize the dataset differently, you can do the following:
    """
    code_block = f"""
    # 1. Create new questions, fields, vectors, or metadata properties in the settings
    settings = rg.Settings.from_hub({from_hub_args})
    settings.questions.add(rg.TextQuestion(name="new_question", required=True))
    dataset = rg.Dataset.from_hub({from_hub_args}, settings=settings)

    # 2. Map the dataset's columns to question, field, or metadata
    settings = rg.Settings.from_hub(
        {from_hub_args},
        feature_mapping={{"<column_name>": "question"}},
    )
    dataset = rg.Dataset.from_hub({from_hub_args}, settings=settings)
    """

    console = Console()
    console.print(
        Panel(
            Group(Syntax(message, "markdown"), Syntax(code_block, "python", theme="github-dark", line_numbers=False)),
            title=title,
            box=box.SQUARE,
            width=100,
            expand=False,
        )
    )
Render the code snippet to use feature_mapping to load a dataset and log its records.
argilla/src/argilla/settings/_io/_hub.py