



'''simple docstring'''





def 						__snake_case(				_lowerCAmelCase		)		-> str:

      if isinstance(_lowerCAmelCase     ,   _lowerCAmelCase		):
            raise TypeError("""'float' object cannot be interpreted as an integer"""		)
      if isinstance(_lowerCAmelCase     ,   _lowerCAmelCase		):
            raise TypeError("""'str' object cannot be interpreted as an integer"""		)

      if num == 0:
            return "0b0"

      snake_case__  :    List[str]    						=      False

      if num < 0:
            snake_case__  :    Optional[int]    						=      True
            snake_case__  :    Optional[int]    						=      -num

      snake_case__  :    list[int]    						=      []
      while num > 0:
            binary.insert(0     ,   num % 2		)
            num >>= 1

      if negative:
            return "-0b" + "".join(str(_lowerCAmelCase		) for e in binary		)

      return "0b" + "".join(str(_lowerCAmelCase		) for e in binary		)


if __name__ == "__main__":
       import doctest

       doctest.testmod()





'''simple docstring'''





from PIL import Image





def 						__snake_case(				_lowerCAmelCase     ,   _lowerCAmelCase		)		-> Image:

      def brightness(_lowerCAmelCase		) -> float:
            return 128 + level + (c - 128)

      if not -255.0 <= level <= 255.0:
            raise ValueError("""level must be between -255.0 (black) and 255.0 (white)"""		)
      return img.point(_lowerCAmelCase		)


if __name__ == "__main__":
       # Load image
       with Image.open("image_data/lena.jpg") as img:
              # Change brightness to 100
              __a          =		change_brightness(img, 100)
              brigt_img.save("image_data/lena_brightness.png", format="png")
