code: def apply_all_link_refs(
      bytecode: bytes, link_refs: List[Dict[str, Any]], attr_dict: Dict[str, str]
  ) -> bytes:
      
      if link_refs is None:
          return bytecode
      link_fns = (
          apply_link_ref(offset, ref["length"], attr_dict[ref["name"]])
          for ref in link_refs
          for offset in ref["offsets"]
      )
      linked_bytecode = pipe(bytecode, *link_fns)
      return linked_bytecode
docs: Applies all link references corresponding to a valid attr_dict to the bytecode.