code: def convert_kv_to_dict(data):
      
      output = {}
      for line in data.split("\n"):
          stripped = line.strip()
          if stripped:
              key, value = stripped.split("=", 1)
              output[key] = value
      return output
docs: convert text values in format:
      key1=value1
      key2=value2
      to dict {'key1':'value1', 'key2':'value2'}
  
      :param data: string containing lines with these values
      :return: dict