code: def debug(self, docs: DocumentArray, **kwargs):
      self.logger.debug(
          f"Received doc array in test-executor {self._name} with length {len(docs)}."
      )
      key = "traversed-executors"
  
      for doc in docs:
          if key not in doc.tags:
              doc.tags[key] = []
          traversed = list(doc.tags.get(key))
          traversed.append(self._name)
          doc.tags[key] = traversed
          doc.tags["parallel"] = self.runtime_args.replicas
          doc.tags["shards"] = self.runtime_args.shards
          doc.tags["shard_id"] = self.runtime_args.shard_id
          doc.tags["hostname"] = socket.gethostname()
  
file_path: jina/tests/docker_compose/test-executor-torch/debug_executor.py
imports: import os
  import socket
  from jina import DocumentArray, Executor, requests
label_desc: Use image node_id 2 for calling the TestExecutor obj's underlying member method code with example usage: obj.debug(docs) without return types