code: def test_low_filter_by_methods():
      dataset = data
      num_issues = count.num_label_issues(
          dataset["labels"], dataset["pred_probs"]
      )
  
      # test filter by low_normalized_margin, check num issues is same as using count.num_label_issues
      label_issues_nm = filter.find_label_issues(
          dataset["labels"],
          dataset["pred_probs"],
          filter_by="low_normalized_margin",
      )
      assert sum(label_issues_nm) == num_issues
  
      # test filter by low_self_confidence, check num issues is same as using count.num_label_issues
      label_issues_sc = filter.find_label_issues(
          dataset["labels"],
          dataset["pred_probs"],
          filter_by="low_self_confidence",
          return_indices_ranked_by="normalized_margin",
      )
      assert len(label_issues_sc) == num_issues
  
      label_issues_sc_sort = filter.find_label_issues(
          dataset["labels"],
          dataset["pred_probs"],
          filter_by="low_self_confidence",
          return_indices_ranked_by="confidence_weighted_entropy",
      )
      assert set(label_issues_sc) == set(label_issues_sc_sort)
  
imports: import cleanlab.multilabel_classification.dataset
  from cleanlab import count, filter
  from cleanlab.count import get_confident_thresholds, estimate_py_and_noise_matrices_from_probabilities
  from cleanlab.internal.latent_algebra import compute_inv_noise_matrix
  from cleanlab.benchmarking.noise_generation import generate_noise_matrix_from_trace
  from cleanlab.benchmarking.noise_generation import generate_noisy_labels
  from cleanlab.internal.util import value_counts
  from cleanlab.internal.multilabel_utils import int2onehot
  from cleanlab.experimental.label_issues_batched import find_label_issues_batched
  import numpy
  import scipy
  import pytest
  from sklearn.multioutput import MultiOutputClassifier
  from sklearn.linear_model import LogisticRegression
  from sklearn.model_selection import cross_val_predict
  from tempfile import mkdtemp
  import os.path
label_desc: Use image node_id 38 for calling a global function with example usage: test_low_filter_by_methods() without return types