def is_method_call(callfunc_node, types=(), methods=()):
 if (not isinstance(callfunc_node, astroid.CallFunc)):
  return False
 func = utils.safe_infer(callfunc_node.func)
 return (isinstance(func, astroid.BoundMethod) and isinstance(func.bound, astroid.Instance) and ((func.bound.name in types) if types else True) and ((func.name in methods) if methods else True))

def is_method_call ( callfunc_node , types = ( ) , methods = ( ) ) : if ( not isinstance ( callfunc_node , astroid . CallFunc ) ) : return False func = utils . safe_infer ( callfunc_node . func ) return ( isinstance ( func , astroid . BoundMethod ) and isinstance ( func . bound , astroid . Instance ) and ( ( func . bound . name in types ) if types else True ) and ( ( func . name in methods ) if methods else True ) )
determines if a callfunc node represents a method call .