code: def set_default_float(value_type: type) -> None:
      """
      Sets default float type. Available options are `np.float16`, `np.float32`,
      or `np.float64`.
      """
      try:
          tf_dtype = tf.as_dtype(
              value_type
          )  # Test that it's a tensorflow-valid dtype
      except TypeError:
          raise TypeError(f"{value_type} is not a valid tf or np dtype")
  
      if not tf_dtype.is_floating:
          raise TypeError(f"{value_type} is not a float dtype")
  
      set_config(replace(config(), float=tf_dtype.as_numpy_dtype))
  
imports: import contextlib
  import os
  from dataclasses import dataclass, field, replace
  from typing import Any, Dict, Generator, List, Mapping, Optional, Union
  import numpy
  import tabulate
  import tensorflow
  import tensorflow_probability
label_desc: Use image node_id 20 for calling a global function with example usage: set_default_float(value_type) without return types