code: def as_dict(obj: Any, skip: Iterable[str] = ()) -> Dict[str, Any]:
      """Remove the leading underscore from private variables for a json representation."""
      return {
          k.lstrip("_"): v
          for k, v in vars(obj).items()
          if k not in skip
      }
  
imports: import json
  import os
  from typing import Any, Dict, Iterable, List, Optional, Union
  from determined import gpu
label_desc: Use image node_id 2 for calling a global function with example usage: as_dict(obj, skip) and returns: unknown