docstr: Generate random bit tensor as arithmetic and binary shared tensors
docstr_tok: ["Generate","random","bit","tensor","as","arithmetic","and","binary","shared","tensors"]
code: def B2A_rng(self, size, device=None):
      """Generate random bit tensor as arithmetic and binary shared tensors"""
      # generate random bit
      r = generate_kbit_random_tensor(size, bitlength=1, device=device)
  
      rA = ArithmeticSharedTensor(r, precision=0, src=0)
      rB = BinarySharedTensor(r, src=0)
  
      return rA, rB
  
file_path: CrypTen/crypten/mpc/provider/tfp_provider.py
imports: import crypten.communicator
  import torch
  from crypten.common.rng import generate_kbit_random_tensor, generate_random_ring_element
  from crypten.common.util import count_wraps, torch_stack
  from crypten.mpc.primitives import ArithmeticSharedTensor, BinarySharedTensor
  from .provider import TupleProvider
label_desc: Use image node_id 5 for calling the TrustedFirstParty obj's underlying member method code with example usage: obj.B2A_rng(size, device) and returns: rA,  rB