def METHOD_NAME(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