code: def _spot_policy(self) -> SpotPolicy:
      return self.run_spec.profile.spot_policy or SpotPolicy.AUTO
  
file_path: dstack/src/dstack/_internal/server/services/jobs/configurators/task.py
imports: from typing import List, Optional
  from dstack._internal.core.models.configurations import ConfigurationType, PortMapping
  from dstack._internal.core.models.profiles import ProfileRetryPolicy, SpotPolicy
  from dstack._internal.core.models.runs import RetryPolicy
  from dstack._internal.server.services.jobs.configurators.base import JobConfigurator
label_desc: Use image node_id 4 for calling the TaskJobConfigurator obj's underlying member method code with example usage: obj._spot_policy() and returns: unknown