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. If a list is empty, it should be skipped.
  assert convert_to_dict([["apple", "red", "green"], ["banana", "yellow", "green"]])=={'apple': ['red', 'green'], 'banana': ['yellow', 'green']}
  assert convert_to_dict([["cherry", "red"], ["date", "brown"]])=={'cherry': ['red'], 'date': ['brown']}
  assert convert_to_dict([])=={}
  assert convert_to_dict([[], ["grape", "purple"]])=={'grape': ['purple']}
  assert convert_to_dict([["pineapple", "yellow"], []])=={'pineapple': ['yellow']}
  assert convert_to_dict([[], []])=={}
output: def convert_to_dict(lst):
      result = {}
      for sublist in lst:
          if sublist:
              key = sublist[0]
              values = sublist[1:]
              result[key] = values
      return result