code: def suggestDType(x):
      """Return a suitable dtype for x"""
      if isinstance(x, list) or isinstance(x, tuple):
          if len(x) == 0:
              raise Exception("can not determine dtype for empty list")
          x = x[0]
  
      if hasattr(x, "dtype"):
          return x.dtype
      elif isinstance(x, float):
          return float
      elif isinstance(x, int):
          return int
      # elif isinstance(x, str):  ## don't try to guess correct string length; use object instead.
      # return '<U%d' % len(x)
      else:
          return object
  
file_path: pyqtgraph/pyqtgraph/flowchart/library/functions.py
imports: import numpy
  from ...metaarray import MetaArray
label_desc: Use image node_id 12 for calling a global function with example usage: suggestDType(x) and returns: x, float, int, object