code: def new_dxrecord(details=None, **kwargs):
      '''
      :rtype: :class:`DXRecord`
  
      :param details: The contents of the record to be created.
      :type details: dict
  
      Additional optional parameters not listed: all those under
      :func:`dxpy.bindings.DXDataObject.new`, except `details`.
  
      Creates a new remote record object with project set to *project*
      and returns the appropriate handler.
  
      Example:
  
          r = dxpy.new_dxrecord({"x": 1, "y": 2})
  
      Note that this function is shorthand for::
  
          dxrecord = DXRecord()
          dxrecord.new(**kwargs)
  
      '''
      dxrecord = DXRecord()
      dxrecord.new(details=details, **kwargs)
      return dxrecorf new_dxrecord(details=None, **kwargs):
      '''
      :rtype: :class:`DXRecord`
  
      :param details: The contents of the record to be created.
      :type details: dict
  
      Additional optional parameters not listed: all those under
      :func:`dxpy.bindings.DXDataObject.new`, except `details`.
  
      Creates a new remote record object with project set to *project*
      and returns the appropriate handler.
  
      Example:
  
          r = dxpy.new_dxrecord({"x": 1, "y": 2})
  
      Note that this function is shorthand for::
  
          dxrecord = DXRecord()
          dxrecord.new(**kwargs)
  
      '''
      dxrecord = DXRecord()
      dxrecord.new(details=details, **kwargs)
      return dxrecord
docs: :rtype: :class:`DXRecord`
  
      :param details: The contents of the record to be created.
      :type details: dict
  
      Additional optional parameters not listed: all those under
      :func:`dxpy.bindings.DXDataObject.new`, except `details`.
  
      Creates a new remote record object with project set to *project*
      and returns the appropriate handler.
  
      Example:
  
          r = dxpy.new_dxrecord({"x": 1, "y": 2})
  
      Note that this function is shorthand for::
  
          dxrecord = DXRecord()
          dxrecord.new(**kwargs)