'Replace dict(some_dict) by PyDict_Copy(some_dict).'

def _handle_simple_function_dict(self, node, function, pos_args):

    if (len(pos_args) != 1):
        return node
    arg = pos_args[0]
    if (arg.type is Builtin.dict_type):
        arg = arg.as_none_safe_node("'NoneType'    is    not    iterable")
        return ExprNodes.PythonCapiCallNode(node.pos, 'PyDict_Copy', self.PyDict_Copy_func_type, args=[arg], is_temp=node.is_temp)
    return node
