code: def _has_invisible_spaces(name):
      # type: (Union[str, List[Dict], FormattedFeatureName]) -> bool
      if isinstance(name, FormattedFeatureName):
          return False
      elif isinstance(name, list):
          return any(_has_invisible_spaces(n["name"]) for n in name)
      else:
          return name.startswith(" ") or name.endswith(" ")
  
file_path: eli5/eli5/formatters/utils.py
imports: from __future__ import absolute_import
  from itertools import chain
  import re
  import six
  from typing import Any, Union, List, Dict, Callable, Match, Optional
  import numpy
  from eli5.base import Explanation
  from .features import FormattedFeatureName
label_desc: Use image node_id 4 for calling a global function with example usage: _has_invisible_spaces(name) and returns: False, any, unknown