code: def _format_name_from_pandas(
      idx_col: Dict[int, str], from_numpy_node: str
  ) -> str:
      """
      Helper function for `from_pandas_dynamic`. converts a node from the `from_numpy_dynamic` format to the `from_pandas`
      format
      Args:
          idx_col: map from variable to intdex
          from_numpy_node: nodes in the structure model output by `from_numpy_dynamic`.
      Returns:
          nodes in from_pandas_dynamic format
      """
      idx, lag_val = from_numpy_node.split("_lag")
      return f"{idx_col[int(idx)]}_lag{lag_val}"
  
file_path: causalnex/causalnex/structure/dynotears.py
imports: import warnings
  from typing import Dict, List, Tuple, Union
  import numpy
  import pandas
  import scipy.linalg
  import scipy.optimize
  from causalnex.structure import StructureModel
  from causalnex.structure.transformers import DynamicDataTransformer
label_desc: Use image node_id 2 for calling a global function with example usage: _format_name_from_pandas(idx_col, from_numpy_node) and returns: idx_col, str, lag_val