docstr: Helper method to check whether a string can be parsed as float or date.
docstr_tok: ["Helper","method","to","check","whether","a","string","can","be","parsed","as","float","or","date","."]
code: def _str_is_convertible(val):
      """
      Helper method to check whether a string can be parsed as float or date.
      """
      try:
          float(val)
      except ValueError:
          try:
              dateutil.parser.parse(val)
          except (ValueError, TypeError):
              # TypeError if dateutil >= 2.8.1 else ValueError
              return False
      return True
  
imports: from collections import OrderedDict
  import dateutil.parser
  import itertools
  import logging
  import numpy
  from matplotlib import _api, ticker, units
label_desc: Use image node_id 2 for calling the UnitData obj's underlying member method code with example usage: obj._str_is_convertible(val) and returns: True, False