code: def is_num_list(item):
      try:
          for thing in item:
              if not isinstance(thing, Num):
                  raise TypeError
      except TypeError:
          return False
      return True
  
file_path: plotly.py/packages/python/plotly/plotly/tests/utils.py
imports: import copy
  from numbers import Number
  from unittest import TestCase
  import plotly.io
label_desc: Use image node_id 5 for calling a global function with example usage: is_num_list(item) and returns: True, False