code: def unpack_col_uid(new_col_type, uid_field_name):
      import hail.ir.ir as ir
  
      new_row = ir.Ref("sa", new_col_type)
      if uid_field_name in new_col_type.fields:
          uid = ir.GetField(new_row, uid_field_name)
      else:
          uid = ir.NA(tint64)
      return uid, ir.SelectFields(
          new_row,
          [
              field
              for field in new_col_type.fields
              if not field == uid_field_name
          ],
      )
  
file_path: hail/hail/python/hail/ir/utils.py
imports: from typing import Optional, List, Any, Tuple
  import hail
  from hail.utils.java import Env
  from hail.expr.types import tint32, tint64
label_desc: Use image node_id 3 for calling a global function with example usage: unpack_col_uid(new_col_type, uid_field_name) and returns: uid,  ir