code: def float_or_string(value):
      try:
          ret = float(value)
      except Exception:
          ret = value
      return ret
  
file_path: pyalgotrade/pyalgotrade/utils/csvutils.py
imports: import csv
  import logging
  import six
  from six.moves import xrange
  import requests
label_desc: Use image node_id 2 for calling a global function with example usage: float_or_string(value) and returns: ret