parameters: (first: Node, second: Node)
return_statement: return False
docstring: This function checks if 'first' is predecessor of 'second'. The node 'first' is called to be
      a predecessor of the node 'second', if an output of 'first' is an input of 'second', and
      number of destinations of 'first' is equal to 1.
      :param first: an Interpolate layer
      :param second: another Interpolate layer
      :return: True, if 'first' is an predecessor of 'second', and False otherwise.
docstring_summary: This function checks if 'first' is predecessor of 'second'. The node 'first' is called to be
      a predecessor of the node 'second', if an output of 'first' is an input of 'second', and
      number of destinations of 'first' is equal to 1.
      :param first: an Interpolate layer
      :param second: another Interpolate layer
      :return: True, if 'first' is an predecessor of 'second', and False otherwise.
docstring_tokens: This function checks if first is predecessor of second . The node first is called to be a predecessor of the node second if an output of first is an input of second and number of destinations of first is equal to 1 . : param first : an Interpolate layer : param second : another Interpolate layer : return : True if first is an predecessor of second and False otherwise .
function: def is_next(first: Node, second: Node) -> bool:
      """
      This function checks if 'first' is predecessor of 'second'. The node 'first' is called to be
      a predecessor of the node 'second', if an output of 'first' is an input of 'second', and
      number of destinations of 'first' is equal to 1.
      :param first: an Interpolate layer
      :param second: another Interpolate layer
      :return: True, if 'first' is an predecessor of 'second', and False otherwise.
      """
      dests = first.out_port(0).get_destinations()
      if node_has_one_consumer(first):
          return second.id == dests[0].node.id
      elif first.soft_get('maybe_part_of_sequence', False):
          return len(dests) == 2 and second.id in [d.node.id for d in dests]
      return False
function_tokens: def is_next ( first : Node , second : Node ) -> bool : dests = first . out_port ( 0 ) . get_destinations ( ) if node_has_one_consumer ( first ) : return second . id == dests [ 0 ] . node . id elif first . soft_get ( 'maybe_part_of_sequence' , False ) : return len ( dests ) == 2 and second . id in [ d . node . id for d in dests ] return False