code: def set_mode(override: BackendMode):
      """Sets global io mode.
      Args:
        override: BackendMode enum value to set for IO mode.
      """
      global io_mode
      io_mode = override
  
imports: import contextlib
  import glob
  import importlib
  import os
  import shutil
  from enum import Enum
  from absl import logging
  from .None import errors
label_desc: Use image node_id 2 for calling a global function with example usage: set_mode(override) without return types