code: def validate_linked_references(
      link_deps: Tuple[Tuple[int, bytes], ...], bytecode: bytes
  ) -> None:
      
      offsets, values = zip(*link_deps)
      for idx, offset in enumerate(offsets):
          value = values[idx]
          # https://github.com/python/mypy/issues/4975
          offset_value = int(offset)
          dep_length = len(value)
          end_of_bytes = offset_value + dep_length
          # Ignore b/c whitespace around ':' conflict b/w black & flake8
          actual_bytes = bytecode[offset_value:end_of_bytes]  # noqa: E203
          if actual_bytes != values[idx]:
              raise ValidationError(
                  "Error validating linked reference. "
                  f"Offset: {offset} "
                  f"Value: {values[idx]} "
                  f"Bytecode: {bytecode} ."
              )
docs: Validates that normalized linked_references (offset, expected_bytes)
      match the corresponding bytecode.