code: def link_manifest_references_into_repository(self, session, manifest, media_type,
                                                   source_repo, target_repo):
          
  
          if source_repo == target_repo:
              return
  
          parsed = json.loads(manifest.decode('utf-8'))
  
          references = []
          if media_type in (MEDIA_TYPE_DOCKER_V2_SCHEMA2, MEDIA_TYPE_OCI_V1):
              references.append(parsed['config']['digest'])
              for l in parsed['layers']:
                  references.append(l['digest'])
          else:
              # manifest list support could be added here, but isn't needed currently, since
              # we never copy a manifest list as a whole between repositories
              raise RuntimeError("Unhandled media-type {}".format(media_type))
  
          for digest in references:
              self.link_blob_into_repository(session, digest, source_repo, target_repo)
docs: Links all the blobs referenced by the manifest from source_repo into target_repo.