code: def _no_grad_fill_(tensor, val):
      with torch.no_grad():
          return tensor.fill_(val)
  
imports: import math
  import warnings
  from torch import Tensor
  import torch
  from typing import Optional
label_desc: Use image node_id 4 for calling a global function with example usage: _no_grad_fill_(tensor, val) and returns: tensor