code: def assign_unbiased_state_label(memm_list, unbiased_state):
      r
      if unbiased_state is None:
          return
      for memm in memm_list:
          assert 0 <= unbiased_state < len(memm.models), "invalid state: " + str(unbiased_state)
          memm._unbiased_state = unbiased_state
docs: r"""
      Sets the msm label for the given list of estimated MEMM objects.
  
      Parameters
      ----------
      memm_list : list of estimated MEMM objects
          The MEMM objects which shall have the msm label set.
      unbiased_state : int or None
          Index of the unbiased thermodynamic state (if present).