code: def nonzeros_f(samples: Tensor) -> Tensor:
      t = torch.zeros(
          samples.shape[0:-1],
          device=samples.device,
          dtype=samples.dtype,
      )
      t[:] = 0.1
      return t
  
imports: import torch
  from botorch.utils import apply_constraints, get_objective_weights_transform
  from botorch.utils.objective import compute_feasibility_indicator, compute_smoothed_feasibility_indicator, soft_eval_constraint
  from botorch.utils.testing import BotorchTestCase
  from torch import Tensor
label_desc: Use image node_id 3 for calling a global function with example usage: nonzeros_f(samples) and returns: t