Use staticmethod call to convert the function

Change-Id: I3931eb5c4926fcf4f4098b6b30007fbac15b798d
Merge "Use staticmethod call to convert the function"