code: def linkChunk(key, chunk):
      
      # Extract link type card
      linkType = chunk[1].strip().split()[0]
  
      # Cases
      if linkType == 'DX':
          # Cross section link type handler
          result = xSectionLink(chunk)
  
      elif linkType == 'STRUCTURE':
          # Structure link type handler
          result = structureLink(chunk)
  
      elif linkType in ('RESERVOIR', 'LAKE'):
          # Reservoir link type handler
          result = reservoirLink(chunk)
      return result
docs: Parse LINK Chunk Method