code: def add_family(
      pfamily: parser.Family,
      instructions: dict[str, Instruction],
      families: dict[str, Family],
  ) -> None:
      family = Family(
          pfamily.name,
          pfamily.size,
          [
              instructions[member_name]
              for member_name in pfamily.members
          ],
      )
      for member in family.members:
          member.family = family
      # The head of the family is an implicit jump target for DEOPTs
      instructions[family.name].is_target = True
      families[family.name] = family
  
imports: from dataclasses import dataclass, field
  import lexer
  import parser
  from typing import Optional
label_desc: Use image node_id 18 for calling a global function with example usage: add_family(pfamily, instructions, families) without return types