input: Write a function to convert a list of lists into a dictionary where the first element of each list is the key and the rest of the elements are the values. The function should return the resulting dictionary.
  assert convert_to_dict([["apple", "red", "green"], ["banana", "yellow", "green"]])=={'apple': ['red', 'green'], 'banana': ['yellow', 'green']}
  assert convert_to_dict([["carrot", "orange"], ["grape", "purple", "green"]])=={'carrot': ['orange'], 'grape': ['purple', 'green']}
  assert convert_to_dict([])=={}
  assert convert_to_dict([["potato"]])=={'potato': []}
  assert convert_to_dict([["tomato", "red", "green"], ["onion", "white"]])=={'tomato': ['red', 'green'], 'onion': ['white']}
output: def convert_to_dict(lst):
      result = {}
      for item in lst:
          if item:
              key = item[0]
              values = item[1:]
              result[key] = values
      return result