code: def _need_chief_oracle(exec_properties: Dict[str, Any]) -> bool:
      """Returns True if the Tuner instance requires a chief oracle."""
      # TODO(b/160902662): Skip chief oracle for CloudTuner that does not require
      #                    chief oracle for distributed tuning (it is a no-op,
      #                    because it simply forwards to the AI Platform Optimizer
      #                    service).
      del exec_properties
      return True
  
imports: import datetime
  import json
  import os
  from typing import Any, Dict, List
  from absl import logging
  from tfx import types
  from tfx.components.tuner import executor
  from tfx.dsl.components.base import base_executor
  from tfx.extensions.google_cloud_ai_platform import constants
  from tfx.extensions.google_cloud_ai_platform import runner
  from tfx.extensions.google_cloud_ai_platform.trainer import executor
  from tfx.types import standard_component_specs
  from tfx.utils import doc_controls
  from tfx.utils import json_utils
  from tfx.utils import name_utils
  import multiprocessing
label_desc: Use image node_id 1 for calling a global function with example usage: _need_chief_oracle(exec_properties) and returns: True