code: def _update_context(cls, mode: BackendHandlerMode):
      if mode == BackendHandlerMode.WithBackend:
          cls._context = WithBackendContext
          cls._ctx_flag = 0
      elif mode == BackendHandlerMode.SetBackend:
          cls._context = ivy.utils.backend.ContextManager
          cls._ctx_flag = 1
      else:
          raise ValueError(f"Unknown backend handler mode! {mode}")
  
file_path: ivy/ivy_tests/test_ivy/helpers/pipeline_helper.py
imports: from enum import Enum
  from typing import Callable
  import ivy
  import importlib
label_desc: Use image node_id 1 for calling the BackendHandler obj's underlying member method code with example usage: obj._update_context(cls, mode) without return types