code: def _bin_length(self, length):
      log_N = int(math.ceil(math.log(length, 2)))
      bin_N = int(math.pow(2, log_N))
      return log_N, bin_N
  
file_path: pytorch-struct/torch_struct/helpers.py
imports: import torch
  import math
  from .semirings import LogSemiring
label_desc: Use image node_id 3 for calling the _Struct obj's underlying member method code with example usage: obj._bin_length(length) and returns: log_N,  bin_N