code: def unpack_row_uid(new_row_type, uid_field_name, drop_uid=True):
      import hail.ir.ir as ir
  
      new_row = ir.Ref("va", new_row_type)
      if uid_field_name in new_row_type.fields:
          uid = ir.GetField(new_row, uid_field_name)
      else:
          uid = ir.NA(tint64)
      if drop_uid:
          new_row = ir.SelectFields(
              new_row,
              [
                  field
                  for field in new_row_type.fields
                  if not field == uid_field_name
              ],
          )
      return uid, new_row
  
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 2 for calling a global function with example usage: unpack_row_uid(new_row_type, uid_field_name, drop_uid) and returns: uid,  new_row