code: def _load_service_cargo(self, service, inject_configs, use_cache=False):
          
          if not isinstance(service, Service):
              raise TypeError("service must of an instance of Service")
  
          repository = "{0}/{1}".format(service.repository, service.namespace)
  
          if service.source_registry:
              if service.source_tag:
                  repository = "{0}:{1}".format(repository, service.source_tag)
  
              if service.source_registry.auth:
                  self._request_auth(service.source_registry)
  
              service.cargo = Image.pull(
                  self._client_session,
                  service.source_registry,
                  repository
              )
          elif service.docker_file:
              service.cargo = Image.build(
                  self._client_session,
                  repository,
                  service.docker_file,
                  use_cache=use_cache
              )
          else:
              raise LookupError("Couldn't locate image or Dockerfile. Every service is required to have one or the other.")
  
          # dynamically inject configuration files if required.
          if inject_configs is True and self._injector:
              self._injector.inject(self._client_session, service)
docs: :param service:
          :return None: