code: def get_spec_secrets(self, spec):
      if self.format_version == 1:
          return spec.get("secrets")
      secrets = spec[0]
      if secrets:
          return [
              {
                  "namespace": secret[0],
                  "name": secret[1],
                  "mount_path": secret[2],
                  "mount_in_copy": bool(secret[3]),
              }
              for secret in secrets
          ]
      return None
  
file_path: hail/batch/batch/batch_format_version.py
imports: from typing import Optional, Tuple
  from hailtop.batch_client.aioclient import Job
label_desc: Use image node_id 7 for calling the BatchFormatVersion obj's underlying member method code with example usage: obj.get_spec_secrets(spec) and returns: None, spec, unknown