code: def _get_state_name(bar_info: _TimelineBarInfo) -> str:
      if bar_info.state == TrialState.COMPLETE and bar_info.infeasible:
          return _INFEASIBLE_KEY
      else:
          return bar_info.state.name
  
file_path: optuna/optuna/visualization/matplotlib/_timeline.py
imports: from optuna._experimental import experimental_func
  from optuna.study import Study
  from optuna.trial import TrialState
  from optuna.visualization._timeline import _get_timeline_info
  from optuna.visualization._timeline import _TimelineBarInfo
  from optuna.visualization._timeline import _TimelineInfo
  from optuna.visualization.matplotlib._matplotlib_imports import _imports
label_desc: Use image node_id 2 for calling a global function with example usage: _get_state_name(bar_info) and returns: _INFEASIBLE_KEY, bar_info