code: def update_commit_cargo_toml(cargo_toml, new_sha):
      print("updating {}".format(cargo_toml.absolute()))
      with open(cargo_toml) as f:
          data = f.read()
  
      doc = tomlkit.parse(data)
  
      update_commit_dependencies(doc.get("dependencies"), new_sha)
      update_commit_dependencies(doc.get("dev-dependencies"), new_sha)
  
      with open(cargo_toml, "w") as f:
          f.write(tomlkit.dumps(doc))
  
file_path: arrow-datafusion/dev/update_arrow_deps.py
imports: import argparse
  from pathlib import Path
  import tomlkit
  import requests
label_desc: Use image node_id 3 for calling a global function with example usage: update_commit_cargo_toml(cargo_toml, new_sha) without return types