code: def set_default_dtype(d):
      ivy.utils.assertions.check_elem_in_list(
          d,
          [
              torch_frontend.float64,
              torch_frontend.float32,
              torch_frontend.float16,
              torch_frontend.bfloat16,
          ],
          message="only floating-point types are supported as the default type",
      )
      global _default_dtype
      _default_dtype = d
      return
  
imports: import ivy
  import ivy.functional.frontends.torch
label_desc: Use image node_id 4 for calling a global function with example usage: set_default_dtype(d) without return types