def METHOD_NAME(self, command: str) -> Union[str, List]:
    """Send a configuration command.
    Args:
        command (str): The command to send to the device.
    Raises:
        NXAPICommandError: If there is a problem with the supplied command.
    """
    commands = [command]
    result = self.config_list(commands)
    if len(result) > 1:
        raise NXAPIError(
            "Length of response inconsistent with number of commands executed."
        )
    # Return the only entry or the empty response
    if result:
        if self.api_format == "jsonrpc":
            return result[0]["result"]
        elif self.api_format == "xml":
            return result[0]
    return result