code: def _apply_column_mapping(
      dataset: "Dataset", column_mapping: Dict[str, str]
  ) -> "Dataset":
      """
      Applies the provided column mapping to the dataset, renaming columns accordingly.
      Extra features not in the column mapping are prefixed with `"feat_"`.
      """
      column_mapping = {
          label_from: label_to
          for label_to, label_from in column_mapping.items()
      }
      dataset = dataset.rename_columns(
          {
              **column_mapping,
              **{
                  col: f"feat_{col}"
                  for col in dataset.column_names
                  if col not in column_mapping
              },
          }
      )
      dset_format = dataset.format
      dataset = dataset.with_format(
          type=dset_format["type"],
          columns=dataset.column_names,
          output_all_columns=dset_format["output_all_columns"],
          **dset_format["format_kwargs"],
      )
      return dataset
  
imports: import inspect
  from typing import Dict
label_desc: Use image node_id 3 for calling a global function with example usage: _apply_column_mapping(dataset, column_mapping) and returns: dataset