code: def choose_state(contributions):
      """
      Select implementation of the smart explainer. Typically check if it is a
      multi-class problem, in which case the implementation should be adapted
      to lists of contributions.
  
      Parameters
      ----------
      contributions : object
          Local contributions. Could also be a list of local contributions.
  
      Returns
      -------
      object
          SmartState or SmartMultiState, depending on the nature of the input.
      """
      if isinstance(contributions, list):
          return MultiDecorator(SmartState())
      else:
          return SmartState()
  
file_path: shapash/shapash/utils/utils.py
imports: import numpy
  import pandas
  import socket
  import math
  from shapash.explainer.smart_state import SmartState
  from shapash.explainer.multi_decorator import MultiDecorator
label_desc: Use image node_id 13 for calling a global function with example usage: choose_state(contributions) and returns: MultiDecorator, SmartState