code: def new_registry() -> Iterator[DslContextRegistry]:
      """Push the new registry to the global scope."""
      with use_registry(DslContextRegistry()) as result:
          yield result
  
imports: import collections
  import contextlib
  import threading
  from typing import Any, List, Optional, Iterator
  from tfx.dsl.context_managers import dsl_context
label_desc: Use image node_id 4 for calling a global function with example usage: new_registry() without return types