code: def build_code_data(datasets, is_merge=False):
      code = ["import dtale\n"]
  
      def build_idx(index):
          return ".setIndex(['{}'])".format("','".join(index))
  
      def build_cols(columns):
          return (
              "[['{}']]".format("','".join(columns)) if columns else ""
          )
  
      for idx, dataset in enumerate(datasets, 1):
          code.append(
              "df{idx} = dtale.get_instance('{id}').data{index}{cols}".format(
                  idx=idx,
                  id=dataset["dataId"],
                  index="" if is_merge else build_idx(dataset["index"]),
                  cols=build_cols(dataset.get("columns")),
              )
          )
      return code
  
file_path: dtale/dtale/combine_data.py
imports: import json
  import pandas
  import dtale.global_state
label_desc: Use image node_id 2 for calling a global function with example usage: build_code_data(datasets, is_merge) and returns: code, str, unknown