code: def constant(value: Any, fill_value: float):
      if isinstance(value, Tensor):
          value.data.fill_(fill_value)
      else:
          for v in (
              value.parameters() if hasattr(value, "parameters") else []
          ):
              constant(v, fill_value)
          for v in value.buffers() if hasattr(value, "buffers") else []:
              constant(v, fill_value)
  
file_path: pytorch_geometric/torch_geometric/nn/inits.py
imports: import math
  from typing import Any
  import torch
  from torch import Tensor
label_desc: Use image node_id 5 for calling a global function with example usage: constant(value, fill_value) without return types