input: Write a python function to create a graph for delivery coordinates using networkx and test it using assert statements.
  assert len(delivery_coordinates([1, 2], [3, 4], [5, 6], [7, 8], [2, 3]).nodes) == 4
  assert len(delivery_coordinates([1], [2], [3], [4], [5]).edges) == 1
  assert delivery_coordinates([1, 2], [3, 4], [5, 6], [7, 8], [2, 3]).has_edge(1, 3) == True
output: import networkx as nx
  
  def delivery_coordinates(*args):
      G = nx.Graph()
      coordinates = [tuple(arg) for arg in args if len(arg) == 2]
      
      for i in range(len(coordinates) - 1):
          G.add_edge(coordinates[i][0], coordinates[i + 1][0])
      
      return G