code: def _to_number(self, val):
      try:
          return float(val)
      except ValueError:
          return val
  
file_path: aim/aim/sdk/adapters/catboost.py
imports: from sys import stdout
  from typing import Optional
  from aim import Run
  from aim.ext.resource import DEFAULT_SYSTEM_TRACKING_INT
label_desc: Use image node_id 4 for calling the AimLogger obj's underlying member method code with example usage: obj._to_number(val) and returns: float, val