The UE4 function called Get Material from Collision Index is available in both blueprint and c++ version. But, the number of inputs required for the function in blueprint and c++ version are different

The blueprint version of Get Material from Collision Index, requires only 1 input which is Face Index.
The C++ version, on the other hand, requires 2 inputs which is Face Index and Section Index.

Please help me by providing the implementation details for the same