code: def _has_samples(y, sel):
      """Check if the given region of factor space has > 0 samples.
  
      Returns
      -------
      bool, true if > 0 non-unique samples are found, false otherwise.
      """
      return (
          (np.count_nonzero(sel) != 0)
          and (len(y[~sel]) != 0)
          and np.unique(y[sel]).size > 1
      )
  
file_path: SALib/src/SALib/analyze/rsa.py
imports: from typing import Dict
  from types import MethodType
  import warnings
  import numpy
  import pandas
  from scipy.stats import cramervonmises_2samp
  from .None import common_args
  from ..util import read_param_file, ResultDict, extract_group_names, _check_groups
label_desc: Use image node_id 3 for calling a global function with example usage: _has_samples(y, sel) and returns: unknown