code: def _assert_feature_list(
      feature_list: List[np.ndarray], list_name: str
  ) -> None:
      """Validates the contents of feature_list arg for `mutual_information`."""
      for f in feature_list:
          if f.dtype == float:
              mask = (f == float("inf")) | (f == float("-inf"))
              assert np.sum(mask) == 0, (
                  "Feature list: %s in list %s contains infinite values, which "
                  "currently are not supported." % (f, list_name)
              )
  
imports: import functools
  import itertools
  import math
  from typing import Any, List, Optional, Tuple, Union
  import uuid
  import numpy
  import pandas
  import scipy.special
  import sklearn.neighbors
label_desc: Use image node_id 10 for calling a global function with example usage: _assert_feature_list(feature_list, list_name) without return types