code: def _get_provider_summaries(
      summary: SearchTaskSummary,
  ) -> List[ProviderTaskSummary]:
      if summary.status in {
          "VALIDATION_CREATED",
          "VALIDATION_SUBMITTED",
          "VALIDATION_COMPLETED",
          "VALIDATION_FAILED",
      }:
          return summary.validation_important_providers
      else:
          return summary.initial_important_providers
  
imports: import tempfile
  import time
  from functools import lru_cache
  from typing import Dict, List, Optional
  import pandas
  from upgini import dataset
  from upgini.http import LoggerFactory, ProviderTaskSummary, SearchProgress, SearchTaskSummary, get_rest_client, is_demo_api_key
  from upgini.metadata import SYSTEM_RECORD_ID, FeaturesMetadataV2, FileMetadata, GeneratedFeatureMetadata, ModelTaskType, ProviderTaskMetadataV2, RuntimeParameters
  from upgini.resource_bundle import bundle
  from upgini.spinner import Spinner
label_desc: Use image node_id 9 for calling the SearchTask obj's underlying member method code with example usage: obj._get_provider_summaries(summary) and returns: summary, summary