code: def branching_rosenbrock(
      x: float, trial: Trial, noise: float | None = None
  ) -> list[dict]:
      with open(os.path.join(trial.working_dir, "hist.txt"), "a") as f:
          f.write(trial.params_repr() + "\n")
  
      return rosenbrock_with_fidelity(x, noise)
  
imports: from __future__ import annotations
  import copy
  import os
  from pathlib import Path
  import numpy
  import pytest
  from orion.algo.pbt.pb2_utils import import_optional
  from orion.client import build_experiment, create_experiment, workon
  from orion.core.io.space_builder import SpaceBuilder
  from orion.core.utils.module_import import ImportOptional
  from orion.core.worker.algo_wrappers import AlgoWrapper
  from orion.core.worker.primary_algo import SpaceTransform
  from orion.core.worker.trial import Trial
  from orion.storage.base import BaseStorageProtocol
  from orion.benchmark.task.base import BenchmarkTask
label_desc: Use image node_id 3 for calling a global function with example usage: branching_rosenbrock(x, trial, noise) and returns: rosenbrock_with_fidelity