For a given Python object for getting the list of all methods that the object has you can use the below-mentioned code, which is replacing 'object' with the object that you want:
object_methods = [method_name for method_name in dir(object)
if callable(getattr(object, method_name))]
Another thing you can do is use the hasattr(object," method") method it will check for a particular method that you want.