parameters: (self, node, function, pos_args)
return_statement: return node
docstring: Replace dict(some_dict) by PyDict_Copy(some_dict).
docstring_summary: Replace dict(some_dict) by PyDict_Copy(some_dict).
docstring_tokens: Replace dict ( some_dict ) by PyDict_Copy ( some_dict ) .
function: def _handle_simple_function_dict(self, node, function, pos_args):
          """Replace dict(some_dict) by PyDict_Copy(some_dict).
          """
          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
function_tokens: 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