

'''simple docstring'''




def  lowerCamelCase__						(  SCREAMING_SNAKE_CASE :				list[int | list]    ,				SCREAMING_SNAKE_CASE :				int  ):
  UpperCAmelCase  							=		0
  for ele in arr:
    total_sum += product_sum(SCREAMING_SNAKE_CASE    ,				depth + 1  ) if isinstance(SCREAMING_SNAKE_CASE    ,				SCREAMING_SNAKE_CASE  ) else ele
  return total_sum * depth


def  lowerCamelCase__						(  SCREAMING_SNAKE_CASE :				list[int | list]  ):
  return product_sum(SCREAMING_SNAKE_CASE    ,				1  )


if __name__ == "__main__":
  import doctest

  doctest.testmod()





'''simple docstring'''




def  lowerCamelCase__						(  SCREAMING_SNAKE_CASE :				str  ):
  UpperCAmelCase  							=		str(SCREAMING_SNAKE_CASE  ).strip()
  if not bin_string:
    raise ValueError('Empty string was passed to the function'  )
  UpperCAmelCase  							=		bin_string[0] == '-'
  if is_negative:
    UpperCAmelCase  							=		bin_string[1:]
  if not all(char in '01' for char in bin_string  ):
    raise ValueError('Non-binary value was passed to the function'  )
  UpperCAmelCase  							=		0
  for char in bin_string:
    UpperCAmelCase  							=		2 * decimal_number + int(SCREAMING_SNAKE_CASE  )
  return -decimal_number if is_negative else decimal_number


if __name__ == "__main__":
  from doctest import testmod

  testmod()


