code: def is_not_constant(series: np.ndarray) -> bool:
      """
      Quickly identify whether a series contains more than 1 distinct value
      Parameters
      ----------
      series: np.ndarray
      The series to assess
  
      Returns
      -------
      bool
          True if more than one distinct value found
      """
      if len(series) <= 1:
          return False
      first_value = None
      for i in range(1, len(series)):
          # if not series.mask[i] and series.data[i] != first_value:
          if series[i] != first_value:
              if first_value is None:
                  first_value = series.data[i]
              else:
                  return True
      return False
  
imports: from operator import gt, le
  from typing import Any, List, Optional, Union
  import numpy
  import pandas
  from .errors import NoSplittableVariableException
  from .splitcondition import SplitCondition
label_desc: Use image node_id 1 for calling a global function with example usage: is_not_constant(series) and returns: False, False, True