code: def to_dict(struct):
      return dict(struct.items())
  
imports: from typing import Dict, Any
  from collections import OrderedDict
  from collections.abc import Mapping
  import pprint
  from hail.utils.misc import get_nice_attr_error, get_nice_field_error
  from hail.typecheck import typecheck, typecheck_method, anytype
label_desc: Use image node_id 1 for calling a global function with example usage: to_dict(struct) and returns: dict