def METHOD_NAME(self, client):
    test_string = "Upload file test case"
    test_bytes = bytearray(test_string, encoding='utf-8')
    with io.BytesIO(test_bytes) as stream_data:
        client.explicit.put_required_binary_body(stream_data)