def METHOD_NAME(beaker: Beaker, dataset: Optional[str] = None) -> str:
    # this just creates a string url.
    workspace_url = beaker.workspace.url()
    if dataset:
        return (
            workspace_url
            + "/datasets?"
            + urllib.parse.urlencode(
                {
                    "text": dataset,
                    "committed": "false",
                }
            )
        )
    return workspace_url