def METHOD_NAME(
    self, test_id: str, file_name: str, body: IO, *, file_type: Optional[str] = None, **kwargs: Any
) -> LROPoller[JSON]:
    """Upload file to the test
    :param test_id: Unique id for the test
    :type test_id: str
    :param file_name: Name of the file to be uploaded
    :type file_name: str
    :param body: File content to be uploaded
    :type body: IO
    :param file_type: Type of the file to be uploaded
    :type file_type: str
    :return: An instance of LROPoller object to check the validation status of file
    :rtype: ~azure.developer.loadtesting._polling.LoadTestingLROPoller
    :raises ~azure.core.exceptions.HttpResponseError:
    :raises ~azure.core.exceptions.ResourceNotFoundError:
    """
    polling_interval = kwargs.pop("_polling_interval", None)
    if polling_interval is None:
        polling_interval = 5
    upload_test_file_operation = super().METHOD_NAME(
        test_id=test_id, file_name=file_name, body=body, file_type=file_type, **kwargs
    )
    command = partial(self.get_test_file, test_id=test_id, file_name=file_name)
    create_validation_status_polling = ValidationCheckPoller(interval=polling_interval)
    return LROPoller(command, upload_test_file_operation, lambda *_: None, create_validation_status_polling)