code: def scalar_like(prototype, fill_value):
      return torch.tensor(
          fill_value, dtype=prototype.dtype, device=prototype.device
      )
  
imports: import copy
  import ctypes
  import functools
  import numbers
  import weakref
  from contextlib import contextmanager
  import torch
  import torch.distributions
  from torch import logsumexp
  from torch.distributions.utils import broadcast_all
  from pyro.util import ignore_jit_warnings
  from ..None import settings
label_desc: Use image node_id 12 for calling a global function with example usage: scalar_like(prototype, fill_value) and returns: torch