code: def _check_inplace_update_support(x, ensure_in_backend):
      current_backend = ivy.current_backend_str()
      is_tf_variable = (
          current_backend == "tensorflow"
          and not ivy.is_ivy_array(x, exclusive=True)
      )
      if (
          ensure_in_backend
          or ivy.is_native_array(x)
          or (ivy.inplace_mode == "strict" and not is_tf_variable)
      ):
          raise ivy.utils.exceptions.InplaceUpdateException(
              f"{current_backend} does not support inplace updates "
              "and ivy cannot support the operation in 'strict' mode\n"
              "To enable inplace update, use ivy.set_inplace_mode('lenient')\n"
          )
  
imports: import warnings
  import ivy
  import functools
  from typing import Callable
  import traceback
  import inspect
  import os
  import ast
  import builtins
label_desc: Use image node_id 10 for calling a global function with example usage: _check_inplace_update_support(x, ensure_in_backend) without return types