code: def jiterable_to_list(it):
      if it is not None:
          return list(Env.jutils().iterableToArrayList(it))
      else:
          return None
  
imports: from typing import Optional, Union
  import sys
  import re
  from hailtop.config import ConfigVariable, configuration_of
label_desc: Use image node_id 6 for calling a global function with example usage: jiterable_to_list(it) and returns: list, None