code: def to_default_int(x: TensorData) -> tf.Tensor:
      return tf.cast(x, dtype=default_int())
  
file_path: GPflow/gpflow/utilities/misc.py
imports: from typing import Callable, Iterable, List, Optional, Union
  import tensorflow
  import tensorflow_probability
  from check_shapes import check_shapes
  from ..base import TensorData
  from ..config import default_float, default_int
label_desc: Use image node_id 1 for calling a global function with example usage: to_default_int(x) and returns: tf