code: def address_as_b58(addr):
      
      if is_c32_address(addr):
          return c32ToB58(addr)
  
      else:
          if check_address(addr):
              return addr
          else:
              raise ValueError('Address {} is not b58 or c32'.format(addr))
docs: Given a b58check or c32check address,
      return the b58check encoding