docs: def validate_arguments(self, locals_dict):
          '''
          Validate the arguments passed to a function. If an error occurred,
          the function will throw a TypesafetyError.
  
          The `locals_dict` argument should be the local value dictionary of
          the function. An example call would be like:
          '''
  
          for key, value, validator in self.__map_arguments(locals_dict):
              if not self.__is_valid(value, validator):
                  key_name = repr(key)
                  func_name = self.__function.__name__
                  annotation = self.__argument_annotation.get(key)
                  message = self.ARG_TYPE_ERROR_MESSAGE.format(
                      key_name,
                      func_name,
                      self.__format_expectation(annotation),
                      value.__class__.__name__)
                  raise TypesafetyError(message)