code: def parse_jobv2_resp(
      resp: bindings.v1GetJobsV2Response,
  ) -> List[Union[bindings.v1Job, bindings.v1LimitedJob]]:
      jobs_nullable = [
          j.full if j.full is not None else j.limited for j in resp.jobs
      ]
      jobs: List[Union[bindings.v1Job, bindings.v1LimitedJob]] = []
      for j in jobs_nullable:
          if j is not None:
              jobs.append(j)
      return jobs
  
file_path: determined/harness/determined/cli/job.py
imports: import datetime
  from argparse import ONE_OR_MORE, Namespace
  from typing import Any, List, Union
  from determined import cli
  from determined.cli import render
  from determined.common import api, util
  from determined.common.api import authentication, bindings
  from determined.common.declarative_argparse import Arg, Cmd, Group
  from determined.common.util import parse_protobuf_timestamp
label_desc: Use image node_id 1 for calling a global function with example usage: parse_jobv2_resp(resp) and returns: jobs