code: def _get_type_dict_helper(framework, kind, is_frontend_test):
      if is_frontend_test:
          framework_module = get_frontend_config(
              framework
          ).supported_dtypes
      elif ivy.current_backend_str() == framework:
          framework_module = ivy
      else:
          with BackendHandler.update_backend(framework) as ivy_backend:
              framework_module = ivy_backend
  
      if kind == "valid":
          return framework_module.valid_dtypes
      if kind == "numeric":
          return framework_module.valid_numeric_dtypes
      if kind == "integer":
          return framework_module.valid_int_dtypes
      if kind == "float":
          return framework_module.valid_float_dtypes
      if kind == "unsigned":
          return framework_module.valid_uint_dtypes
      if kind == "signed_integer":
          return tuple(
              set(framework_module.valid_int_dtypes).difference(
                  framework_module.valid_uint_dtypes
              )
          )
      if kind == "complex":
          return framework_module.valid_complex_dtypes
      if kind == "real_and_complex":
          return tuple(
              set(framework_module.valid_numeric_dtypes).union(
                  framework_module.valid_complex_dtypes
              )
          )
      if kind == "float_and_complex":
          return tuple(
              set(framework_module.valid_float_dtypes).union(
                  framework_module.valid_complex_dtypes
              )
          )
      if kind == "float_and_integer":
          return tuple(
              set(framework_module.valid_float_dtypes).union(
                  framework_module.valid_int_dtypes
              )
          )
      if kind == "bool":
          return tuple(
              set(framework_module.valid_dtypes).difference(
                  framework_module.valid_numeric_dtypes
              )
          )
  
      raise RuntimeError(f"{kind} is an unknown kind!")
  
file_path: ivy/ivy_tests/test_ivy/helpers/hypothesis_helpers/dtype_helpers.py
imports: import numpy
  from hypothesis import strategies
  from typing import Optional
  import ivy
  from ..pipeline_helper import BackendHandler, get_frontend_config
  from .None import number_helpers
  from .None import array_helpers
  from ..None import globals
  from ..globals import mod_backend
label_desc: Use image node_id 3 for calling a global function with example usage: _get_type_dict_helper(framework, kind, is_frontend_test) and returns: framework_module, framework_module, framework_module, framework_module, framework_module, tuple, framework_module, tuple, tuple, tuple, tuple