code: def update_masked_length(self, max_len, seq_range=None, device=None):
      if seq_range is None:
          self.lens, self.max_len = _masked_conv_init_lens(
              self.lens, max_len, self.max_len
          )
          self.lens = self.lens.to(device)
      else:
          self.lens = seq_range
          self.max_len = torch.tensor(max_len)
  
imports: import math
  from typing import Callable, Iterable, List, Optional, Tuple
  import torch
  import torch.nn
  import torch.nn.functional
  from torch import Tensor
  from torch.nn.init import _calculate_correct_fan
  from torch.nn.modules.utils import _single
  from nemo.collections.common.parts.utils import activation_registry
  from nemo.core.classes.mixins import AccessMixin
  from nemo.core.classes.mixins.adapter_mixins import AdapterModuleMixin
  from nemo.utils import logging
label_desc: Use image node_id 4 for calling the MaskedConv1d obj's underlying member method code with example usage: obj.update_masked_length(max_len, seq_range, device) without return types