code: def nogpu_session(graph=None):
      """tf.Session context manager, hiding GPUs."""
      # We don't use the with construction because we don't want the Session to be
      # installed as the "default" session.
      sess = raw_nogpu_session(graph)
      yield sess
      sess.close()
  
imports: from __future__ import annotations
  import collections
  import contextlib
  from typing import Any, Union
  import numpy
  from tensorflow_datasets.core.utils import py_utils
  from tensorflow_datasets.core.utils import tree_utils
  from tensorflow_datasets.core.utils import type_utils
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
label_desc: Use image node_id 7 for calling a global function with example usage: nogpu_session(graph) without return types