whole_func_string: 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 {};
        }
      }
func_code_string: 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 {};
        }
      }
func_documentation_string: The repository must already exist