code: def UNTESTED_dejsonify_lists(vals):
      for idx, val in enumerate(vals):
          if isinstance(val, str):
              if val == "nan":
                  vals[idx] = np.nan
              elif val == "+inf":
                  vals[idx] = np.inf
              elif val == "-inf":
                  vals[idx] = -np.inf
          else:
              if isinstance(val, list):
                  UNTESTED_dejsonify_lists(val)
      return vals
  
file_path: interpret/python/interpret-core/interpret/glassbox/_ebm/_json.py
imports: import logging
  from warnings import warn
  from ...utils._link import identify_task
  from math import isnan
  import numpy
  from itertools import groupby
  from ._utils import generate_term_names
  from ...utils._histogram import make_all_histogram_edges
  from ...utils._clean_simple import typify_classification
label_desc: Use image node_id 5 for calling a global function with example usage: UNTESTED_dejsonify_lists(vals) and returns: vals