code: def expand_masks_tracing_scale(M, padding):
      # type: (int, int) -> float
      return torch.tensor(M + 2 * padding).to(
          torch.float32
      ) / torch.tensor(M).to(torch.float32)
  
imports: import math
  from typing import List, Tuple, Dict, Optional
  import torch
  from torch import nn, Tensor
  import torch.nn.functional
  import torchvision
  from .image_list import ImageList
label_desc: Use image node_id 8 for calling a global function with example usage: expand_masks_tracing_scale(M, padding) and returns: unknown