code: def _retry_policy(self) -> RetryPolicy:
      # convert ProfileRetryPolicy to RetryPolicy
      return RetryPolicy.parse_obj(
          self.run_spec.profile.retry_policy or ProfileRetryPolicy()
      )
  
file_path: dstack/src/dstack/_internal/server/services/jobs/configurators/service.py
imports: from typing import List, Optional
  import dstack._internal.server.services.jobs.configurators.extensions.openai
  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 Gateway, RetryPolicy
  from dstack._internal.server.services.jobs.configurators.base import JobConfigurator
label_desc: Use image node_id 4 for calling the ServiceJobConfigurator obj's underlying member method code with example usage: obj._retry_policy() and returns: RetryPolicy