class_docstr: Unique identifier for DAGs.
class_docstr_tok: ["Unique","identifier","for","DAGs","."]
docstr: Migration helper to create DAG IDs.
docstr_tok: ["Migration","helper","to","create","DAG","IDs","."]
code: def from_str(id_str: str) -> DagId:
      """Migration helper to create DAG IDs."""
      return DagId(id_str)
  
imports: from __future__ import annotations
  import html
  import logging
  import textwrap
  from abc import ABC, abstractmethod
  from dataclasses import dataclass
  from typing import Any, Generic, List, Sequence, TypeVar
  import jinja2
  from metricflow.dag.id_generation import IdGeneratorRegistry
  from metricflow.dag.id_prefix import IdPrefix
  from metricflow.dag.prefix_id import PrefixIdGenerator
  from metricflow.visitor import VisitorOutputT
label_desc: Use image node_id 2 for calling the DagId obj's underlying member method code with example usage: obj.from_str(id_str) and returns: DagId