code: def is_float_tensor(tensor: torch.Tensor) -> bool:
      """
      Returns True if a tensor is a float tensor.
      """
      if torch.is_tensor(tensor):
          return tensor.type().endswith("FloatTensor")
      else:
          return False
  
imports: import collections.abc
  import contextlib
  import json
  import logging
  import os
  import time
  from functools import partial
  from typing import Any, Dict, List, Optional, Tuple, Union
  import numpy
  import torch
  import torch.nn
  from classy_vision.generic.distributed_util import broadcast_object, is_primary
  from fvcore.common.file_io import PathManager
label_desc: Use image node_id 6 for calling a global function with example usage: is_float_tensor(tensor) and returns: tensor, False