<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def bind_function(self, function):
 """ Binds given function to a class object attribute. Usage:: True '3.15.1' :param function: Function to bind. :type function: LibraryHook :return: Method success. :rtype: bool """


        LOGGER.debug("> Binding '{0}' library '{1}' function.".format(self.__class__.__name__, function.name))

        function_object = getattr(self.__library, function.name)
        setattr(self, function.name, function_object)
        if function.arguments_types:
            function_object.argtypes = function.arguments_types
        if function.return_value:
            function_object.restype = function.return_value
        return True