docstr: check if there is conflict between new node info and old chunk info. If not, update old chunk info
docstr_tok: ["check","if","there","is","conflict","between","new","node","info","and","old","chunk","info",".","If","not",",","update","old","chunk","info"]
code: def _update_chunk_info(
      self,
      chunk_info: Dict,
      new_all_node_info: Dict,
      output: Node,
      output_dim: int,
  ) -> bool:
      """
      check if there is conflict between new node info and old chunk info. If not, update old chunk info
      """
      # check if conflict
      overlap_flag = False
      for k, v in new_all_node_info.items():
          if k in chunk_info["node_chunk_dim"]:
              overlap_flag = True
              if (
                  chunk_info["node_chunk_dim"][k]["chunk_dim"]
                  != v["chunk_dim"]
              ):
                  return False
      # if no overlap, we just consider them as prepose nodes, instead of new output
      if overlap_flag == False:
          return True
      # update chunk info
      for k, v in new_all_node_info.items():
          if k in chunk_info["node_chunk_dim"]:
              chunk_info["node_chunk_dim"][k]["fix_dim"] = list(
                  set(
                      chunk_info["node_chunk_dim"][k]["fix_dim"]
                      + v["fix_dim"]
                  )
              )
          else:
              chunk_info["node_chunk_dim"][k] = v
      chunk_info["outputs"].append(output)
      chunk_info["outputs_dim"].append(output_dim)
      return True
  
file_path: colossalai/colossalai/autochunk/trace_flow.py
imports: from typing import Dict, List, Tuple
  from torch.fx.node import Node
  from .trace_indice import TraceIndice
  from .utils import NodeMgr, find_chunk_all_input_nodes, find_chunk_compute_input_and_output_nodes, find_tensor_shape_node, flat_list, get_node_name, get_node_shape, is_non_compute_node
label_desc: Use image node_id 11 for calling the TraceFlow obj's underlying member method code with example usage: obj._update_chunk_info(chunk_info, new_all_node_info, output, output_dim) and returns: True, True, False