code: def get_active_graph(graph: "DiGraph") -> "DiGraph":
      g = cast("DiGraph", graph.copy())
      for stage in graph:
          if stage.frozen:
              # NOTE: disconnect frozen stage from its dependencies
              g.remove_edges_from(graph.out_edges(stage))
      return g
  
file_path: dvc/dvc/repo/reproduce.py
imports: from typing import TYPE_CHECKING, Callable, Dict, Iterable, List, NoReturn, Optional, Set, Tuple, TypeVar, Union, cast
  from funcy import ldistinct
  from dvc.exceptions import ReproductionError
  from dvc.log import logger
  from dvc.repo.scm_context import scm_context
  from dvc.stage.cache import RunCacheNotSupported
  from dvc.utils import humanize
  from dvc.utils.collections import ensure_list
  from .None import locked
label_desc: Use image node_id 3 for calling a global function with example usage: get_active_graph(graph) and returns: g