code: def scala_object(jpackage, name):
      return getattr(getattr(jpackage, name + "$"), "MODULE$")
  
imports: from typing import Optional, Union
  import sys
  import re
  from hailtop.config import ConfigVariable, configuration_of
label_desc: Use image node_id 2 for calling a global function with example usage: scala_object(jpackage, name) and returns: getattr