code: def test_set_backend_throw_warning_only_once_when_inplace_update_not_supported(
      backend_fw,
  ):
      def _assert_number_of_inplace_warnings_is(n):
          inplace_update_warning_counter = 0
          for item in record:
              if "inplace update" in str(item.message):
                  inplace_update_warning_counter += 1
          assert inplace_update_warning_counter == n
  
      if backend_fw in ["tensorflow", "paddle", "jax"]:
          with pytest.warns(UserWarning) as record:
              ivy.set_backend(backend_fw)
              ivy.set_backend(backend_fw)
          _assert_number_of_inplace_warnings_is(1)
  
file_path: ivy/ivy_tests/test_ivy/test_misc/test_backend_utils/test_backend_handler.py
imports: from packaging import version
  import pytest
  import importlib
  import types
  import numpy
  import ivy
  from ivy.utils.backend.handler import _backend_dict
  from ivy_tests.test_ivy.helpers.available_frameworks import _available_frameworks
label_desc: Use image node_id 9 for calling a global function with example usage: test_set_backend_throw_warning_only_once_when_inplace_update_not_supported(backend_fw) without return types