Are there measures in place to prevent poorly written code in custom functions in AI Hub from threatening the stability and security of the entire environment?
Yes, there are measures in place to prevent poorly written code in custom functions in AI Hub from threatening the stability and security of the entire environment. Guidelines listed in Writing custom functions include restrictions on the use of the standard Python library and external libraries. For example, the logging service is not supported, and print statements are limited to 4 KB in length. Additionally, only specific versions of external libraries are allowed, which helps to control the environment and reduce the risk of poorly written code affecting the system.
These guidelines ensure that custom functions are written in a controlled manner, which helps to maintain the stability and security of the AI Hub environment.