code: def _get_sample_ids(
      col_key: StructExpression, include_sample_ids: bool
  ) -> Optional[List[str]]:
      assert check_argument_types()
  
      has_sample_ids = "s" in col_key and col_key.s.dtype == tstr
      if include_sample_ids and has_sample_ids:
          sample_ids = [f"'{s}'" for s in col_key.s.collect()]
      else:
          sample_ids = None
  
      assert check_return_type(sample_ids)
      return sample_ids
  
file_path: glow/python/glow/hail/functions.py
imports: import hail
  from hail import MatrixTable
  from hail.expr.expressions.typed_expressions import StructExpression
  from hail.expr.types import tarray, tbool, tcall, tfloat64, tint, tlocus, tset, tstr, tstruct
  from pyspark.sql import Column, DataFrame
  import pyspark.sql.functions
  from typing import List, NoReturn, Optional
  from typeguard import check_argument_types, check_return_type
label_desc: Use image node_id 1 for calling a global function with example usage: _get_sample_ids(col_key, include_sample_ids) and returns: sample_ids