code: def finite_valued_dict():
      return {
          "scalar": 1,
          "metrics": {
              "val": 0.2,
              "series": [0.1, 0.2, 0.3],
              "ndarray": np.ones((8, 4, 2)),
          },
      }
  
file_path: ludwig/tests/ludwig/utils/test_numerical_test_utils.py
imports: import numpy
  import pytest
  from ludwig.utils.numerical_test_utils import assert_all_finite
label_desc: Use image node_id 1 for calling a global function with example usage: finite_valued_dict() and returns: dict