parameters: (if_node: Node, condition: bool)
docstring: Update the data type for If body Parameter nodes based on data type of the outer graph nodes producing data
          for them.
  
          :param if_node: The If node
          :param condition: the boolean defining a condition (then/else) graph
          :return: None
docstring_summary: Update the data type for If body Parameter nodes based on data type of the outer graph nodes producing data
          for them.
docstring_tokens: Update the data type for If body Parameter nodes based on data type of the outer graph nodes producing data for them .
function: def update_body_parameters_type(if_node: Node, condition: bool):
          """
          Update the data type for If body Parameter nodes based on data type of the outer graph nodes producing data
          for them.
  
          :param if_node: The If node
          :param condition: the boolean defining a condition (then/else) graph
          :return: None
          """
          assert if_node.soft_get('type') == 'If'
  
          subgraph = if_node.then_graph if condition else if_node.else_graph
          for node in subgraph.get_op_nodes():
              if node.has('input_id'):
                  assert node.soft_get('type') == 'Parameter'
                  input_port_id = node['input_id']
                  input_type = if_node.in_port(input_port_id).get_data_type()
                  node.data_type = input_type
                  log.debug('Updated data type for the body node with name "{}" with value {}'
                            .format(node.name, node.data_type))
function_tokens: def update_body_parameters_type ( if_node : Node , condition : bool ) : assert if_node . soft_get ( 'type' ) == 'If' subgraph = if_node . then_graph if condition else if_node . else_graph for node in subgraph . get_op_nodes ( ) : if node . has ( 'input_id' ) : assert node . soft_get ( 'type' ) == 'Parameter' input_port_id = node [ 'input_id' ] input_type = if_node . in_port ( input_port_id ) . get_data_type ( ) node . data_type = input_type log . debug ( 'Updated data type for the body node with name "{}" with value {}' . format ( node . name , node . data_type ) )