code: def make_same_degree(nodes1, nodes2):
      
      _, num_nodes1 = nodes1.shape
      _, num_nodes2 = nodes2.shape
      for _ in six.moves.xrange(num_nodes2 - num_nodes1):
          nodes1 = _curve_helpers.elevate_nodes(nodes1)
      for _ in six.moves.xrange(num_nodes1 - num_nodes2):
          nodes2 = _curve_helpers.elevate_nodes(nodes2)
      return nodes1, nodes2
docs: Degree-elevate a curve so two curves have matching degree.
  
      Args:
          nodes1 (numpy.ndarray): Set of control points for a
              B |eacute| zier curve.
          nodes2 (numpy.ndarray): Set of control points for a
              B |eacute| zier curve.
  
      Returns:
          Tuple[numpy.ndarray, numpy.ndarray]: The potentially degree-elevated
          nodes passed in.