docs: def parse_meta(file_content, cable):
      """\
      Extracts the reference id, date/time of creation, the classification,
      and the origin of the cable and assigns the value to the provided `cable`.
      """
      end_idx = file_content.rindex("</table>")
      start_idx = file_content.rindex("<table class='cable'>", 0, end_idx)
      m = _META_PATTERN.search(file_content, start_idx, end_idx)
      if not m:
          raise ValueError('Cable table not found')
      if len(m.groups()) != 4:
          raise ValueError('Unexpected metadata result: "%r"' % m.groups())
      # Table content: 
      # Reference ID | Created | Classification | Origin
      ref, created, classification, origin = m.groups()
      if cable.reference_id != ref:
          reference_id = MALFORMED_CABLE_IDS.get(ref)
          if reference_id != cable.reference_id:
              reference_id = INVALID_CABLE_IDS.get(ref)
              if reference_id != cable.reference_id:
                  raise ValueError('cable.reference_id != ref. reference_id="%s", ref="%s"' % (cable.reference_id, ref))
      cable.created = created
      cable.origin = origin
      # classifications are usually written in upper case, but you never know.. 
      cable.classification = classification.upper()
      # Try to find media IRIs
      start_idx = file_content.rfind(u'Appears in these', start_idx, end_idx)
      if start_idx > 0:
          cable.media_uris = _MEDIA_URLS_PATTERN.findall(file_content, start_idx, end_idx)
      return cable