code: def build_offset_net(opt):
      st_pe = Embedder(
          opt.raw_pos_dim + 1,
          opt.pos_max_freq,
          opt.pos_N_freqs,
          opt.log_sampling,
          opt.include_input,
          min_freq=opt.pos_min_freq,
      )
  
      offset_net = NeRF(
          depth=opt.nerf_depth,
          width=opt.nerf_width,
          input_ch=st_pe.out_dim,
          input_ch_views=0,
          output_ch=3,
          use_viewdirs=False,
          scale=opt.offset_scale,
          scale_type=opt.offset_scale_type,
      )
  
      offset_net = OffsetNet(st_pe, offset_net)
  
      if opt.use_cuda:
          offset_net = offset_net.cuda()
      return offset_net
  
imports: import torch
  import torch.nn
  import torch.nn.functional
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: build_offset_net(opt) and returns: offset_net