code: def assert_nr_segments(nr_segments: int) -> None:
      """
      Assert that the number of segments given the segmentation algorithm is more than one.
  
      Parameters
      ----------
      nr_segments: integer
          The number of segments that the segmentaito algorithm produced.
  
      Returns
      -------
      None
      """
      assert (
          nr_segments > 1
      ), "The number of segments from the segmentation algorithm must be more than one."
  
file_path: Quantus/quantus/helpers/asserts.py
imports: from typing import Callable, Tuple, Sequence, Union
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: assert_nr_segments(nr_segments) without return types