code: async function getAdopter(name) {
        try {
          const policyResponse = await ecr.getRepositoryPolicy({ repositoryName: name }).promise();
          const policy = JSON.parse(policyResponse.policyText);
          // Search the policy for an adopter marker
          return (policy.Statement || []).find((x) => x.Action === markerStatement.Action) || {};
        } catch (e) {
          if (e.code !== 'RepositoryPolicyNotFoundException') { throw e; }
          return {};
        }
      }
docs: The repository must already exist