def METHOD_NAME(self, args):
    zd = self.dataClass()   # pylint: disable=not-callable
    ns = self.op.parse_args(args=args, lineno=self.lineno)
    self.set_to_obj(ns, zd)
    zd.lineno = self.lineno
    # Check for duplicates in the data list.
    if zd in self.dataList():
        warnings.warn(_("A FCOE device with the name %s has already been defined.") % zd.nic, KickstartParseWarning)
    return zd