original_string: public static function can_create_data_deletion_request_for_other(int $userid = null): bool {
          global $USER;
          $userid = $userid ?: $USER->id;
          return has_capability('tool/dataprivacy:requestdeleteforotheruser', context_system::instance(), $userid);
      }
code: public static function can_create_data_deletion_request_for_other(int $userid = null): bool {
          global $USER;
          $userid = $userid ?: $USER->id;
          return has_capability('tool/dataprivacy:requestdeleteforotheruser', context_system::instance(), $userid);
      }
code_tokens: public static function can_create_data_deletion_request_for_other ( int $ userid = null ) : bool { global $ USER ; $ userid = $ userid ? : $ USER -> id ; return has_capability ( 'tool/dataprivacy:requestdeleteforotheruser' , context_system :: instance ( ) , $ userid ) ; }
docstring: Check if user has permission to create data deletion request for another user.
  
  @param int|null $userid ID of the user.
  @return bool
  @throws coding_exception
  @throws dml_exception
docstring_tokens: Check if user has permission to create data deletion request for another user .