code: def check_is_priority(
      pools: bindings.v1GetResourcePoolsResponse, resource_pool: str
  ) -> bool:
      if pools.resourcePools is None:
          raise ValueError(
              f"No resource pools found checking scheduler type of {resource_pool}"
          )
  
      for pool in pools.resourcePools:
          if (
              resource_pool is None and pool.defaultComputePool
          ) or resource_pool == pool.name:
              return (
                  pool.schedulerType
                  == bindings.v1SchedulerType.PRIORITY
              )
      raise ValueError(f"Pool {resource_pool} not found")
  
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 6 for calling a global function with example usage: check_is_priority(pools, resource_pool) and returns: unknown