code: def remove_table_labels(
      self,
      doc_labels: DocumentSpans,
      doc_chunks: t.List[TableChunks],
      doc_text: str,
  ):
      flat_doc_chunks = [
          ts["document"] for chunks in doc_chunks for ts in chunks
      ]
      output_labels = []
      for l in doc_labels:
          if not any(
              sequences_overlap(l, ts) for ts in flat_doc_chunks
          ):
              output_labels.append(l)
          else:
              sub_spans = self.subtract_spans(l, flat_doc_chunks)
              for s in sub_spans:
                  s["text"] = doc_text[s["start"] : s["end"]]
              output_labels += sub_spans
  
      return output_labels
  
imports: import copy
  import functools
  import os
  import tempfile
  import typing
  import sys
  from finetune.base_models import TableRoBERTa
  from finetune.util.metrics import sequences_overlap
  from finetune.scheduler import Scheduler
  from finetune.encoding.input_encoder import BaseEncoder
  from finetune import SequenceLabeler
label_desc: Use image node_id 7 for calling the TableETL obj's underlying member method code with example usage: obj.remove_table_labels(doc_labels, doc_chunks, doc_text) and returns: output_labels