code: def tsv_pairs_to_dict(line: str, key_lower: bool = True) -> Dict[str, str]:
      r
      items = line.split("\t")
      d = {}  # type: Dict[str, str]
      for chunk in chunks(items, 2):
          if len(chunk) < 2:
              log.warning("Bad chunk, not of length 2: {!r}", chunk)
              continue
          key = chunk[0]
          value = unescape_tabs_newlines(chunk[1])
          if key_lower:
              key = key.lower()
          d[key] = value
      return d
docs: r"""
      Converts a TSV line into sequential key/value pairs as a dictionary.
  
      For example,
  
      .. code-block:: none
  
          field1\tvalue1\tfield2\tvalue2
  
      becomes
  
      .. code-block:: none
  
          {"field1": "value1", "field2": "value2"}
  
      Args:
          line: the line
          key_lower: should the keys be forced to lower case?