code: def float_to_tuple(a):
      try:
          a = float(a)
          return (a, a)
      except TypeError:
          assert len(a) == 2
          try:
              b = float(a[0]), float(a[1])
          except TypeError:
              raise TypeError("Force values must be castable to floats")
          return b
  
imports: from __future__ import division
  import sys
  from itertools import product
  from operator import itemgetter
  import matplotlib
  import numpy
  from matplotlib import pyplot
  from matplotlib.path import get_path_collection_extents
label_desc: Use image node_id 14 for calling a global function with example usage: float_to_tuple(a) and returns: a,  a, b