code: def test_function_dtype_versioning_frontend(
      *,
      func_and_version,
      backend_fw,
  ):
      with BackendHandler.update_backend(backend_fw) as ivy_backend:
          _import_mod = ivy_backend.utils.dynamic_import
          for key in func_and_version:
              if key != backend_fw:
                  continue
              frontend = _import_mod.import_module(
                  "ivy.functional.frontends"
              )
              var = frontend.versions
  
              for key1 in func_and_version[key]:
                  for key2 in func_and_version[key][key1]:
                      var[backend_fw] = key2
                      fn = getattr(
                          _import_mod.import_module(
                              f"ivy.functional.frontends.{backend_fw}"
                          ),
                          key1,
                      )
                      expected = func_and_version[key][key1][key2]
                      res = fn.unsupported_dtypes
                      if res is None:
                          res = set()
                      else:
                          res = set(res)
                      if res != expected:
                          raise Exception
              return True
  
imports: import numpy
  from hypothesis import strategies
  import typing
  import ivy
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_test, BackendHandler
label_desc: Use image node_id 24 for calling a global function with example usage: test_function_dtype_versioning_frontend() and returns: True