def create_arguments(primary, pyfunction, call_node, scope):
 args = list(call_node.args)
 args.extend(call_node.keywords)
 called = call_node.func
 if (_is_method_call(primary, pyfunction) and isinstance(called, ast.Attribute)):
  args.insert(0, called.value)
 return Arguments(args, scope)

def create_arguments ( primary , pyfunction , call_node , scope ) : args = list ( call_node . args ) args . extend ( call_node . keywords ) called = call_node . func if ( _is_method_call ( primary , pyfunction ) and isinstance ( called , ast . Attribute ) ) : args . insert ( 0 , called . value ) return Arguments ( args , scope )
a factory for creating arguments .