code: def _get_indices_to_drop(phe_pdf, sample_ids):
      drop_indices = []
      phe_samples = set(phe_pdf.index.values.astype(str).tolist())
      for i, s in enumerate(sample_ids):
          if s not in phe_samples:
              drop_indices.append(i)
      return np.array(drop_indices)
  
imports: from pyspark.sql import SparkSession, functions
  from pyspark.sql.types import StructField, StructType, FloatType, DoubleType, ArrayType
  from typing import Any, Callable, Dict, List, Optional, TypeVar, Union
  import numpy
  import pandas
  from nptyping import Float, NDArray
  from typeguard import typechecked
  import opt_einsum
  from glow.wgr.model_functions import _assert_all_present, _check_binary
  from glow.wgr.wgr_functions import _get_contigs_from_loco_df
  from enum import Enum
label_desc: Use image node_id 12 for calling a global function with example usage: _get_indices_to_drop(phe_pdf, sample_ids) and returns: np