code: def is_data_diverging(data_container):
      
      assert infer_data_type(data_container) in [
          "ordinal",
          "continuous",
      ], "Data type should be ordinal or continuous"
  
      # Check whether the data contains negative and positive values.
      has_negative = False
      has_positive = False
      for i in data_container:
          if i < 0:
              has_negative = True
          elif i > 0:
              has_positive = True
      if has_negative and has_positive:
          return True
      else:
          return False
docs: We want to use this to check whether the data are diverging or not.
  
      This is a simple check, can be made much more sophisticated.
  
      :param data_container: A generic container of data points.
      :type data_container: `iterable`