code: def __init__(
      self,
      instances=1,
      depends=None,
      allow_failures=False,
      max_restarts=0,
      **kwargs,
  ):
      super().__init__(**kwargs)
      if isinstance(depends, str):
          depends = [depends]
  
      self._allow_failures = allow_failures
      self._depends = depends or []
      self._max_restarts = max_restarts
      self._instances = instances
  
imports: import os
  import textwrap
  from urllib.parse import urlparse
  from ...utils import parse_readable_size
label_desc: Use image node_id 1 to create a new AppServiceConfig object from inherited base classes: AppContainerConfig with example: obj = AppServiceConfig(instances, depends, allow_failures, max_restarts)