docstr: Generate binary triples of given size
docstr_tok: ["Generate","binary","triples","of","given","size"]
code: def generate_binary_triple(self, size0, size1, device=None):
      """Generate binary triples of given size"""
      generator = TTPClient.get().get_generator(device=device)
  
      a = generate_kbit_random_tensor(
          size0, generator=generator, device=device
      )
      b = generate_kbit_random_tensor(
          size1, generator=generator, device=device
      )
  
      if comm.get().get_rank() == 0:
          # Request c from TTP
          c = TTPClient.get().ttp_request(
              "binary", device, size0, size1
          )
      else:
          size2 = torch.broadcast_tensors(a, b)[0].size()
          c = generate_kbit_random_tensor(
              size2, generator=generator, device=device
          )
  
      # Stack to vectorize scatter function
      a = BinarySharedTensor.from_shares(a)
      b = BinarySharedTensor.from_shares(b)
      c = BinarySharedTensor.from_shares(c)
      return a, b, c
  
imports: import logging
  import crypten
  import crypten.communicator
  import torch
  import torch.distributed
  from crypten.common.rng import generate_kbit_random_tensor, generate_random_ring_element
  from crypten.common.util import count_wraps
  from crypten.mpc.primitives import ArithmeticSharedTensor, BinarySharedTensor
  from .provider import TupleProvider
label_desc: Use image node_id 3 for calling the TrustedThirdParty obj's underlying member method code with example usage: obj.generate_binary_triple(size0, size1, device) and returns: a,  b,  c