Hi Naresh,
The code of the transformation supports ASCX markup, which means the same syntax that you would use to edit standard web forms or user controls. So you can use our API methods directly along with proper syntax it should look like:
<% CurrentUser.IsInRole("RoleName", CurrentSite.SiteName); %>
You can find more detail explanation as well as an example on this link.