code: def update(op, device_name, version, key, value):
      """Update the db of op parameters."""
      if (op, device_name, version) in _operation_device_version_data:
          if (
              _operation_device_version_data[
                  op, device_name, version
              ].get(key)
              == value
          ):
              return
          _operation_device_version_data[op, device_name, version][
              key
          ] = value
      else:
          _operation_device_version_data[op, device_name, version] = {
              key: value
          }
  
file_path: pytorch/torch/sparse/_triton_ops_meta.py
imports: import inspect
  import itertools
  import re
  import warnings
  from typing import Any, Dict
  import torch
  from torch.hub import tqdm
  from torch.testing import make_tensor
label_desc: Use image node_id 2 for calling a global function with example usage: update(op, device_name, version, key, value) without return types